From 8ba24e133da65626bdfc0076256fab0db1eb18b0 Mon Sep 17 00:00:00 2001 From: Paul van Brenk Date: Fri, 19 Aug 2016 16:22:28 -0700 Subject: [PATCH] fix autosize --- autosize/autosize-tests.ts | 2 +- autosize/{autosize.d.ts => index.d.ts} | 5 ++--- autosize/tsconfig.json | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) rename autosize/{autosize.d.ts => index.d.ts} (88%) create mode 100644 autosize/tsconfig.json diff --git a/autosize/autosize-tests.ts b/autosize/autosize-tests.ts index 23686fbd88..74be703a94 100644 --- a/autosize/autosize-tests.ts +++ b/autosize/autosize-tests.ts @@ -1,4 +1,4 @@ -/// +/// // from a NodeList autosize(document.querySelectorAll('textarea')); diff --git a/autosize/autosize.d.ts b/autosize/index.d.ts similarity index 88% rename from autosize/autosize.d.ts rename to autosize/index.d.ts index 0a8a696c3d..5ea76d0472 100644 --- a/autosize/autosize.d.ts +++ b/autosize/index.d.ts @@ -12,6 +12,5 @@ declare namespace autosize { declare var autosize: autosize.AutosizeStatic; -declare module 'autosize' { - export = autosize; -} +export = autosize; +export as namespace autosize; diff --git a/autosize/tsconfig.json b/autosize/tsconfig.json new file mode 100644 index 0000000000..09535bc88d --- /dev/null +++ b/autosize/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "autosize-tests.ts" + ] +} \ No newline at end of file