Skip to content

Using with Typescript #37

Closed
Closed
@yebrahim

Description

I'm trying to use the node client from a Typescript file, but I can get the compiler to be happy when including it. Doing:
import { Config } from '@kubernetes/client-node/dist/src/config';
the compiler complains that it can't find the definition file for bluebird. This is because it's in the devDependencies of the client's package.json, so it doesn't get installed when doing npm install.

What is the recommended way to use the package from Typescript? An example would be appreciated.

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