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.

Problem with using Promises in TypeScript #141

@eli-darkly

Description

@eli-darkly

The SDK has some asynchronous methods that are supposed to support using either callbacks or Promises:

client.variation(key, user, default, (err, result) => { ... }); // callback client.variation(key, user, default).then(result => { ... }); // Promise 

However, due to a problem in the SDK's TypeScript declarations, the second line above does not compile in TypeScript.

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