diff --git a/types/is-docker/index.d.ts b/types/is-docker/index.d.ts new file mode 100644 index 0000000000..12b3f6b797 --- /dev/null +++ b/types/is-docker/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for is-docker 1.1 +// Project: https://github.com/sindresorhus/is-docker#readme +// Definitions by: Yash Kulshrestha +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.7 + +declare function isDocker(): boolean; +export = isDocker; diff --git a/types/is-docker/is-docker-tests.ts b/types/is-docker/is-docker-tests.ts new file mode 100644 index 0000000000..00274a35e0 --- /dev/null +++ b/types/is-docker/is-docker-tests.ts @@ -0,0 +1,3 @@ +import isDocker from "is-docker"; + +isDocker(); // $ExpectType boolean diff --git a/types/is-docker/tsconfig.json b/types/is-docker/tsconfig.json new file mode 100644 index 0000000000..4c065b1b55 --- /dev/null +++ b/types/is-docker/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true, + "esModuleInterop": true + }, + "files": ["index.d.ts", "is-docker-tests.ts"] +} diff --git a/types/is-docker/tslint.json b/types/is-docker/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/is-docker/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }