From 55e4d769ed3a61dfcdcdb546c11e9482fb485340 Mon Sep 17 00:00:00 2001 From: Dmitrii Sorin Date: Thu, 12 Jul 2018 12:15:11 +1000 Subject: [PATCH] Update typings for identify() function --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.