Merge pull request #29955 from darkwebdev/makeup-keyboard-trap

Add makeup-keyboard-trap definitions
This commit is contained in:
Armando Aguirre
2018-11-05 13:30:15 -08:00
committed by GitHub
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" }