From 89b00d39dc36fb5e44a35d5326fd0c3bb710be47 Mon Sep 17 00:00:00 2001 From: Nate Brennand Date: Tue, 16 May 2017 15:01:19 -0700 Subject: [PATCH] type def fixes --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 224424c..668cc13 100644 --- a/index.d.ts +++ b/index.d.ts @@ -296,7 +296,7 @@ declare module "ldclient-node" { * @param callback * Will be called after the upsert operation is complete. */ - upsert: (key: string, flag: LDFlag, callback?: () => void) => void; + upsert: (key: string, flag: LDFlagValue, callback?: () => void) => void; /** * Is the store initialized? @@ -308,7 +308,7 @@ declare module "ldclient-node" { * Truthy if the cache is already initialized. * */ - initialized: (callback?: (err) => void) => bool; + initialized: (callback?: (err) => void) => boolean; /** * Close the feature store. @@ -349,7 +349,7 @@ declare module "ldclient-node" { */ variation: (key: string, user: LDUser, defaultValue: LDFlagValue, callback?: (err: any, res: LDFlagValue) => void) => void; - toggle: typeof variation; + toggle: (key: string, user: LDUser, defaultValue: LDFlagValue, callback?: (err: any, res: LDFlagValue) => void) => void; /** * Retrieves a flag's value.