[smoothscroll-polyfill] Add type definitions (#18618)

Add an optional extended description…
This commit is contained in:
Michael Strobel
2017-08-04 16:57:17 -07:00
committed by Sheetal Nandi
parent 8a6349f455
commit fe5b420de2
4 changed files with 32 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
// Type definitions for smoothscroll-polyfill 0.3
// Project: https://iamdustan.github.io/smoothscroll
// Definitions by: Michael Strobel <https://github.com/kryops>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function polyfill(): void;
@@ -0,0 +1,3 @@
import { polyfill } from 'smoothscroll-polyfill';
polyfill();
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"smoothscroll-polyfill-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }