From fe5b420de221d708d61293b5c718ec51689a9bf6 Mon Sep 17 00:00:00 2001 From: Michael Strobel Date: Sat, 5 Aug 2017 07:57:17 +0800 Subject: [PATCH] [smoothscroll-polyfill] Add type definitions (#18618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an optional extended description… --- types/smoothscroll-polyfill/index.d.ts | 6 +++++ .../smoothscroll-polyfill-tests.ts | 3 +++ types/smoothscroll-polyfill/tsconfig.json | 22 +++++++++++++++++++ types/smoothscroll-polyfill/tslint.json | 1 + 4 files changed, 32 insertions(+) create mode 100644 types/smoothscroll-polyfill/index.d.ts create mode 100644 types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts create mode 100644 types/smoothscroll-polyfill/tsconfig.json create mode 100644 types/smoothscroll-polyfill/tslint.json diff --git a/types/smoothscroll-polyfill/index.d.ts b/types/smoothscroll-polyfill/index.d.ts new file mode 100644 index 0000000000..1940dc3eec --- /dev/null +++ b/types/smoothscroll-polyfill/index.d.ts @@ -0,0 +1,6 @@ +// Type definitions for smoothscroll-polyfill 0.3 +// Project: https://iamdustan.github.io/smoothscroll +// Definitions by: Michael Strobel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function polyfill(): void; diff --git a/types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts b/types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts new file mode 100644 index 0000000000..798a8be8af --- /dev/null +++ b/types/smoothscroll-polyfill/smoothscroll-polyfill-tests.ts @@ -0,0 +1,3 @@ +import { polyfill } from 'smoothscroll-polyfill'; + +polyfill(); diff --git a/types/smoothscroll-polyfill/tsconfig.json b/types/smoothscroll-polyfill/tsconfig.json new file mode 100644 index 0000000000..8f54f5ebfc --- /dev/null +++ b/types/smoothscroll-polyfill/tsconfig.json @@ -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" + ] +} diff --git a/types/smoothscroll-polyfill/tslint.json b/types/smoothscroll-polyfill/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/smoothscroll-polyfill/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }