Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@natebrennand
Copy link

Sorry, I didn't quite do my due diligence before opening #62. Found 3 more small things.

* 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;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was no definition for LDFlag, but there was for LDFlagValue.

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;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know of a terse way to replicate a function type definition. If toggle is deprecated, maybe the solution is to just remove it from the type definitions altogether?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep it for legacy compatibility until we remove it.

@dlau
Copy link
Contributor

dlau commented May 16, 2017

Thanks for this. 👍

@dlau dlau merged commit ce39fc6 into launchdarkly:master May 16, 2017
@natebrennand natebrennand deleted the more-fixes branch May 16, 2017 22:19
@dlau
Copy link
Contributor

dlau commented May 16, 2017

published to npm ldclient-node@3.0.13

@natebrennand natebrennand mentioned this pull request May 17, 2017
eli-darkly added a commit that referenced this pull request May 10, 2018
…ack-util

[ch15352] Fix promise/callback utility…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants