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

Upsert type signature is wrong #160

Merged
merged 3 commits into from
Oct 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,6 @@ declare module 'launchdarkly-node-server-sdk' {
* collection of entities to use, e.g. `"features"` or `"segments"`. The store should not
* make any assumptions about the format of the data, but just return a JSON object.
*
* @param key
* The unique key of the entity within the specified collection.
*
* @param data
* The contents of the entity, as an object that can be converted to JSON. The store
* should check the `version` property of this object, and should *not* overwrite any
Expand All @@ -599,7 +596,7 @@ declare module 'launchdarkly-node-server-sdk' {
* @param callback
* Will be called after the upsert operation is complete.
*/
upsert(kind: object, key: string, data: object, callback: () => void): void;
upsert(kind: object, data: object, callback: () => void): void;

/**
* Tests whether the store is initialized.
Expand Down