Add makeup-keyboard-trap definitions

This commit is contained in:
Timur Manyanov
2018-10-22 19:15:39 +02:00
parent 3ea5ad14c4
commit ace7dbcd8b
4 changed files with 43 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// Type definitions for makeup-keyboard-trap 0.1
// Project: https://github.com/makeup-js/makeup-keyboard-trap#readme
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
export function refresh(): any;
export function trap(el: any): any;
export function untrap(): any;
@@ -0,0 +1,7 @@
import { trap, untrap } from 'makeup-keyboard-trap';
const widgetEl: HTMLElement | null = document.querySelector('.expander');
trap(widgetEl);
untrap();
+24
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",
"makeup-keyboard-trap-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }