Skip to content

Commit 943f512

Browse files
authored
Merge pull request #191 from tsyirvo/chore/identifyTypes
chore: use T generic for identify function
2 parents ce87da8 + 1b69d6d commit 943f512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export interface IFlagsmith<F extends string = string, T extends string = string
119119
/**
120120
* Identify user, triggers a call to get flags if flagsmith.init has been called
121121
*/
122-
identify: (userId: string, traits?: Record<string, IFlagsmithValue>) => Promise<void>;
122+
identify: (userId: string, traits?: Record<T, IFlagsmithValue>) => Promise<void>;
123123
/**
124124
* Retrieves the current state of flagsmith
125125
*/

0 commit comments

Comments
 (0)