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

Typescript definition for method all of LDFeatureStore is incorrect #77

@magne4000

Description

@magne4000

The definition

https://github.com/launchdarkly/node-client/blob/master/index.d.ts#L271

all: (callback: (err: any, res: LDFlagSet) => void) => void;

The usage

https://github.com/launchdarkly/node-client/blob/master/index.js#L211

config.feature_store.all(function(flags) {
  ...
});

fix

So the TS definition should be something like:

all: (callback: (res: LDFlagSet) => void) => void;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions