Skip to content

Commit 2bebba8

Browse files
authored
fix: Un-deprecate setTrait, setTraits and identify (#276)
* remove setTrait and setTraits deprecation Signed-off-by: Tiago Fonseca <tiago@tiagopaiva.me> * removes identify deprecation Signed-off-by: Tiago Fonseca <tiago@tiagopaiva.me> --------- Signed-off-by: Tiago Fonseca <tiago@tiagopaiva.me>
1 parent 8417a31 commit 2bebba8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

types.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export interface IFlagsmith<F extends string = string, T extends string = string
169169
*/
170170
getAllFlags: () => IFlags<F>;
171171
/**
172-
* * @deprecated Please consider using evaluationContext.identity: {@link IFlagsmith.setContext}.
172+
* Identify user, triggers a call to get flags if `flagsmith.init` has been called
173173
* */
174174
identify: (userId: string, traits?: Record<T, IFlagsmithValue>) => Promise<void>;
175175
/**
@@ -232,12 +232,11 @@ export interface IFlagsmith<F extends string = string, T extends string = string
232232
*/
233233
getAllTraits: () => Record<string, IFlagsmithValue>;
234234
/**
235-
* * @deprecated Please consider using evaluationContext.identity: {@link IFlagsmith.setContext}.
235+
* Set a specific trait for a given user id, triggers a call to get flags
236236
* */
237237
setTrait: (key: T, value: IFlagsmithTrait) => Promise<void>;
238238
/**
239239
* Set a key value set of traits for a given user, triggers a call to get flags
240-
* @deprecated in favour of {@link IFlagsmith.setContext}.
241240
*/
242241
setTraits: (traits: ITraits) => Promise<void>;
243242
/**

0 commit comments

Comments
 (0)