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