Add types for jest-plugin-set (#28712)

This commit is contained in:
Jonas Heinrich
2018-09-11 01:38:11 +02:00
committed by Ryan Cavanaugh
parent 2b9558d869
commit 8c4d561427
4 changed files with 34 additions and 0 deletions

6
types/jest-plugin-set/index.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
// Type definitions for jest-plugin-set 2.9
// Project: https://github.com/negativetwelve/jest-plugins/tree/master/packages/jest-plugin-set
// Definitions by: Jonas Heinrich <https://github.com/jonasheinrich>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function set(name: string, block: () => void): void;

View File

@@ -0,0 +1 @@
set('variableA', () => {});

View File

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

View File

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