[inspectlet-es] New type definitions (#37247)

This commit is contained in:
idmadj 2019-07-31 18:58:07 -04:00 committed by Jesse Trinity
parent 2fab8543dd
commit 22dffbebe4
4 changed files with 35 additions and 0 deletions

7
types/inspectlet-es/index.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
// Type definitions for inspectlet-es 1.0
// Project: https://github.com/idmadj/inspectlet-es
// Definitions by: idmadj <https://github.com/idmadj>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function install(wid: number): void;
export default function insp(...args: any[]): number;

View File

@ -0,0 +1,4 @@
import insp, { install } from 'inspectlet-es';
install(12345678); // $ExpectType void
insp(['identify', "john@example.com"]); // $ExpectType number

View File

@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"inspectlet-es-tests.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }