Skip to content

Commit

Permalink
remove setTrait and setTraits deprecation
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Fonseca <tiago@tiagopaiva.me>
  • Loading branch information
tiagoapolo committed Dec 23, 2024
1 parent 5cd31ca commit aece015
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,11 @@ export interface IFlagsmith<F extends string = string, T extends string = string
*/
getAllTraits: () => Record<string, IFlagsmithValue>;
/**
* * @deprecated Please consider using evaluationContext.identity: {@link IFlagsmith.setContext}.
* Set a specific trait for a given user id, triggers a call to get flags
* */
setTrait: (key: T, value: IFlagsmithTrait) => Promise<void>;
/**
* Set a key value set of traits for a given user, triggers a call to get flags
* @deprecated in favour of {@link IFlagsmith.setContext}.
*/
setTraits: (traits: ITraits) => Promise<void>;
/**
Expand Down

0 comments on commit aece015

Please sign in to comment.