diff --git a/src/index.d.ts b/src/index.d.ts index 197687b0..8341455f 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -222,7 +222,7 @@ declare module 'ldclient-js' { * @param onDone * A callback to invoke after the user is identified. */ - identify: (user: LDUser, hash?: string, onDone?: () => void) => Promise; + identify: (user: LDUser, hash?: string, onDone?: (err: Error | null, flags: LDFlagSet | null) => void) => Promise; /** * Flushes pending events asynchronously.