@unrevealed/node
Advanced tools
Comparing version 0.0.6-rc.1 to 0.0.6-rc.2
export type { UnrevealedLogger } from './Logger'; | ||
export type { UnrevealedFeatureKey, UnrevealedFeatures, UnrevealedTeamTraits, UnrevealedUserTraits, } from './types'; | ||
export type { FeatureKey, Features, TeamTraits, UserTraits } from './types'; | ||
export { UnrevealedClient, type ReadyState, type UnrevealedClientOptions, } from './UnrevealedClient'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,16 +0,16 @@ | ||
export interface UnrevealedFeatures { | ||
export interface Features { | ||
} | ||
export type UnrevealedFeatureKey = keyof UnrevealedFeatures extends never ? string : keyof UnrevealedFeatures; | ||
export interface UnrevealedUserTraits { | ||
export type FeatureKey = keyof Features extends never ? string : keyof Features; | ||
export interface UserTraits { | ||
} | ||
export interface User { | ||
id: string; | ||
traits: keyof UnrevealedUserTraits extends never ? Record<string, unknown> : UnrevealedUserTraits; | ||
traits: keyof UserTraits extends never ? Record<string, unknown> : UserTraits; | ||
} | ||
export interface UnrevealedTeamTraits { | ||
export interface TeamTraits { | ||
} | ||
export interface Team { | ||
id: string; | ||
traits: keyof UnrevealedTeamTraits extends never ? Record<string, unknown> : UnrevealedTeamTraits; | ||
traits: keyof TeamTraits extends never ? Record<string, unknown> : TeamTraits; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
import { UnrevealedLogger } from './Logger'; | ||
import { Team, UnrevealedFeatureKey, User } from './types'; | ||
import { FeatureKey, Team, User } from './types'; | ||
export type ReadyState = 'UNINITIALIZED' | 'CONNECTING' | 'READY' | 'CLOSED'; | ||
@@ -23,3 +23,3 @@ export interface UnrevealedClientOptions { | ||
close(): void; | ||
isFeatureEnabled(featureKey: UnrevealedFeatureKey, { user, team }?: { | ||
isFeatureEnabled(featureKey: FeatureKey, { user, team }?: { | ||
user?: User; | ||
@@ -31,3 +31,3 @@ team?: Team; | ||
team?: Team; | ||
}): Promise<UnrevealedFeatureKey[]>; | ||
}): Promise<FeatureKey[]>; | ||
identify({ user, team }: { | ||
@@ -34,0 +34,0 @@ user?: User; |
{ | ||
"name": "@unrevealed/node", | ||
"version": "0.0.6-rc.1", | ||
"version": "0.0.6-rc.2", | ||
"description": "Unrevealed SDK for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17011