Merge pull request #29964 from darkwebdev/makeup-prevent-scroll-keys

Add makeup-prevent-scroll-keys definitions
This commit is contained in:
Armando Aguirre
2018-11-05 15:35:29 -08:00
committed by GitHub
4 changed files with 43 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for makeup-prevent-scroll-keys 0.0
// Project: https://github.com/makeup-js/makeup-prevent-scroll-keys#readme
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
export function add(el: any): void;
export function remove(el: any): void;
@@ -0,0 +1,9 @@
import * as scrollKeyPreventer from 'makeup-prevent-scroll-keys';
const widgetEl: HTMLElement | null = document.querySelector('.widget');
if (widgetEl) {
scrollKeyPreventer.add(widgetEl);
scrollKeyPreventer.remove(widgetEl);
}
@@ -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-prevent-scroll-keys-tests.ts"
]
}
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }