mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
added is-docker@1.1.0 types (#29656)
* added types for yup@0.26 * added types for is-docker * Revert "added types for yup@0.26" This reverts commit 025d62ac6109b35361f6e3636fea966d887dde74. * added esModuleInterop to the tsconfig * changed the export and forced the typescript version to 2.7"
This commit is contained in:
committed by
Sheetal Nandi
parent
09c62bd089
commit
a88a8724a6
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for is-docker 1.1
|
||||
// Project: https://github.com/sindresorhus/is-docker#readme
|
||||
// Definitions by: Yash Kulshrestha <https://github.com/YashdalfTheGray>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
declare function isDocker(): boolean;
|
||||
export = isDocker;
|
||||
@@ -0,0 +1,3 @@
|
||||
import isDocker from "is-docker";
|
||||
|
||||
isDocker(); // $ExpectType boolean
|
||||
@@ -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"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user