mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Add no-scroll typing
This commit is contained in:
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// Type definitions for no-scroll 2.1
|
||||
// Project: https://github.com/davidtheclark/no-scroll
|
||||
// Definitions by: Zhang Yi Jiang <https://github.com/ZhangYiJiang>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface NoScroll {
|
||||
off(): void;
|
||||
on(): void;
|
||||
toggle(): void;
|
||||
}
|
||||
|
||||
declare const noScroll: NoScroll;
|
||||
export = noScroll;
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as noScroll from 'no-scroll';
|
||||
|
||||
noScroll.on();
|
||||
noScroll.off();
|
||||
noScroll.toggle();
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"no-scroll-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user