mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 19:20:05 +00:00
Add makeup-screenreader-trap definitions
This commit is contained in:
9
types/makeup-screenreader-trap/index.d.ts
vendored
Normal file
9
types/makeup-screenreader-trap/index.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Type definitions for makeup-screenreader-trap 0.0
|
||||
// Project: https://github.com/makeup-js/makeup-screenreader-trap#readme
|
||||
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
export function trap(el: HTMLElement): void;
|
||||
|
||||
export function untrap(): void;
|
||||
@@ -0,0 +1,9 @@
|
||||
import { trap, untrap } from 'makeup-screenreader-trap';
|
||||
|
||||
const widgetEl: HTMLElement | null = document.querySelector('.expander');
|
||||
|
||||
if (widgetEl) {
|
||||
trap(widgetEl);
|
||||
}
|
||||
|
||||
untrap();
|
||||
24
types/makeup-screenreader-trap/tsconfig.json
Normal file
24
types/makeup-screenreader-trap/tsconfig.json
Normal 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-screenreader-trap-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/makeup-screenreader-trap/tslint.json
Normal file
1
types/makeup-screenreader-trap/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user