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

Closed

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;

Activity

  1. changed the title [-]Typescript definition for all method of LDFeatureStore is incorrect[/-] [+]Typescript definition for method `all` of `LDFeatureStore` is incorrect[/+] on Jan 26, 2018
  2. apucacao commented on Jan 29, 2018

    @apucacao
    Contributor

    Thanks for reporting this @magne4000 — we'll get a fix out shortly.

  3. apucacao commented on Jan 31, 2018

    @apucacao
    Contributor

    Hi @magne4000 , we just released 3.3.2 which includes your correction. Thanks!

  4. added a commit that references this issue on May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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