mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-24 12:35:32 +00:00
Merge pull request #29 from lukeautry/lukeautry/typescript-type-declarations
typescript declarations
This commit is contained in:
commit
fd10054383
2 changed files with 31 additions and 0 deletions
30
index.d.ts
vendored
Normal file
30
index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
declare module "docker-compose" {
|
||||||
|
interface IDockerCompose {
|
||||||
|
upAll(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
upMany(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
upOne(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
kill(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
down(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
stop(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
rm(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
exec(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
run(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
buildAll(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
buildMany(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
buildOne(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IDockerComposeOptions {
|
||||||
|
cwd: string;
|
||||||
|
config?: string | string[];
|
||||||
|
log?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IDockerComposeResult {
|
||||||
|
out: string;
|
||||||
|
err: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const _: IDockerCompose;
|
||||||
|
export = _;
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
"name": "docker-compose",
|
"name": "docker-compose",
|
||||||
"version": "0.9.1",
|
"version": "0.9.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"typings": "index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/.bin/tape test",
|
"test": "./node_modules/.bin/tape test",
|
||||||
"eslint": "./node_modules/.bin/eslint ."
|
"eslint": "./node_modules/.bin/eslint ."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue