mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Add typings for enzyme-adapter-react-15.4. (#22948)
* Add types for enzyme-adapter-react-15.4. * Add in definitions by and strictFunctionTypes * Add in Typescript version
This commit is contained in:
committed by
Wesley Wigham
parent
3a8270c12c
commit
6a8d97f457
@@ -0,0 +1,4 @@
|
||||
import { configure } from 'enzyme';
|
||||
import * as Adapter from 'enzyme-adapter-react-15.4';
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for enzyme-adapter-react-15.4 1.0
|
||||
// Project: http://airbnb.io/enzyme/
|
||||
// Definitions by: Nabeelah Ali <https://github.com/nali>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { EnzymeAdapter } from 'enzyme';
|
||||
|
||||
declare class ReactFifteenFourAdapter extends EnzymeAdapter {
|
||||
}
|
||||
|
||||
declare namespace ReactFifteenFourAdapter {
|
||||
}
|
||||
|
||||
export = ReactFifteenFourAdapter;
|
||||
@@ -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",
|
||||
"enzyme-adapter-react-15.4-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user