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:
Yash Kulshrestha
2018-10-15 11:24:36 -07:00
committed by Sheetal Nandi
parent 09c62bd089
commit a88a8724a6
4 changed files with 29 additions and 0 deletions
+8
View File
@@ -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;
+3
View File
@@ -0,0 +1,3 @@
import isDocker from "is-docker";
isDocker(); // $ExpectType boolean
+17
View File
@@ -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"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }