mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Initial typings for exenv
This commit is contained in:
parent
9f4c751261
commit
7fab72af1e
6
types/exenv/exenv-tests.ts
Normal file
6
types/exenv/exenv-tests.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import * as ExecutionEnvironment from 'exenv';
|
||||
|
||||
JSON.stringify(ExecutionEnvironment.canUseDOM);
|
||||
JSON.stringify(ExecutionEnvironment.canUseEventListeners);
|
||||
JSON.stringify(ExecutionEnvironment.canUseViewport);
|
||||
JSON.stringify(ExecutionEnvironment.canUseWorkers);
|
||||
10
types/exenv/index.d.ts
vendored
Normal file
10
types/exenv/index.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
// Type definitions for exenv 1.2
|
||||
// Project: https://github.com/JedWatson/exenv
|
||||
// Definitions by: Christian Chown <https://github.com/christianchown>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
export const canUseDOM: boolean;
|
||||
export const canUseEventListeners: boolean;
|
||||
export const canUseViewport: boolean;
|
||||
export const canUseWorkers: boolean;
|
||||
23
types/exenv/tsconfig.json
Normal file
23
types/exenv/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"exenv-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/exenv/tslint.json
Normal file
1
types/exenv/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user