Add type definition for keymirror

This commit is contained in:
Johannes Fahrenkrug
2016-11-11 15:21:45 -05:00
parent 4734ea6df2
commit e8ba41e4e2
3 changed files with 29 additions and 0 deletions

7
keymirror/index.d.ts vendored Normal file
View 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;

View File

@@ -0,0 +1,3 @@
import keyMirror = require('keymirror');
keyMirror({key1: null, key2: null});

19
keymirror/tsconfig.json Normal file
View 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"
]
}