Skip to content

Commit 55e4d76

Browse files
committed
Update typings for identify() function
1 parent b3c96d1 commit 55e4d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ declare module 'ldclient-js' {
222222
* @param onDone
223223
* A callback to invoke after the user is identified.
224224
*/
225-
identify: (user: LDUser, hash?: string, onDone?: () => void) => Promise<void>;
225+
identify: (user: LDUser, hash?: string, onDone?: (err: Error | null, flags: LDFlagSet | null) => void) => Promise<void>;
226226

227227
/**
228228
* Flushes pending events asynchronously.

0 commit comments

Comments
 (0)