Merge pull request #32189 from BendingBender/beeper

[beeper] Add types
This commit is contained in:
Daniel Rosenwasser
2019-01-15 17:09:48 -08:00
committed by GitHub
4 changed files with 40 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import beeper = require('beeper');
beeper();
beeper(3);
beeper(3, () => {});
beeper('****-*-*');
beeper('****-*-*', () => {});
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for beeper 1.1
// Project: https://github.com/sindresorhus/beeper#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = beeper;
declare function beeper(count?: number, cb?: () => void): void;
declare function beeper(melody: string, cb?: () => void): void;
+23
View 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",
"beeper-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }