0.0.1 • Published 6 years ago

dockerode-ts-promise v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

These types have been published to DefinitelyTyped

If you have an issue with the types, you can raise an issue here or on DefinitelyTyped

You can install types from DefinitelyTyped using npm or yarn:

yarn add @types/dockerode --dev
npm install @types/dockerode --save-dev

dockerode-ts-promise

Dockerode wrapped in TypeScript

Why?

The dockerode library is great and has quite a large API surface.
I found myself frequently referring to the source code of dockerode since the documentation is not complete.
This is an effort to statically type that API surface which is another form of documentation.

Where are the types?

You can view them here

Requirements

  • TypeScript (1.8+)
  • NodeJS

Installation

npm install dockerode-ts-promise

Usage

import Dockerode from 'dockerode-ts-promise';

const docker = new Dockerode({
  /** options... */
});

TODOs

  • Most callbacks are typed as any. These should be typed correctly.

License

MIT