mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
Add type definition for keymirror
This commit is contained in:
7
keymirror/index.d.ts
vendored
Normal file
7
keymirror/index.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
// Type definitions for keymirror 0.1.1
|
||||
// Project: https://github.com/STRML/keyMirror
|
||||
// Definitions by: Johannes Fahrenkrug <https://github.com/jfahrenkrug>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function KeyMirror(obj: Object): Object;
|
||||
export = KeyMirror;
|
||||
3
keymirror/keymirror-tests.ts
Normal file
3
keymirror/keymirror-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import keyMirror = require('keymirror');
|
||||
|
||||
keyMirror({key1: null, key2: null});
|
||||
19
keymirror/tsconfig.json
Normal file
19
keymirror/tsconfig.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"keymirror-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user