mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for random-boolean
This commit is contained in:
parent
efbcbdebaf
commit
cfc0da48c0
8
types/random-boolean/index.d.ts
vendored
Normal file
8
types/random-boolean/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for random-boolean 1.0
|
||||
// Project: https://github.com/arthurvr/random-boolean#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = randomBoolean;
|
||||
|
||||
declare function randomBoolean(): boolean;
|
||||
4
types/random-boolean/random-boolean-tests.ts
Normal file
4
types/random-boolean/random-boolean-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import randomBoolean = require('random-boolean');
|
||||
|
||||
// $ExpectType boolean
|
||||
randomBoolean();
|
||||
23
types/random-boolean/tsconfig.json
Normal file
23
types/random-boolean/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",
|
||||
"random-boolean-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/random-boolean/tslint.json
Normal file
1
types/random-boolean/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user