mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-20 21:08:59 +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",
|
||||
"version": "0.9.1",
|
||||
"main": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/tape test",
|
||||
"eslint": "./node_modules/.bin/eslint ."
|
||||
|
|
|
|||
Loading…
Reference in a new issue