diff --git a/window-or-global/index.d.ts b/window-or-global/index.d.ts new file mode 100644 index 0000000000..eb51e7b7fb --- /dev/null +++ b/window-or-global/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for window-or-global 1.0 +// Project: https://github.com/purposeindustries/window-or-global +// Definitions by: vvakame +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare var _: any; +export = _; diff --git a/window-or-global/tsconfig.json b/window-or-global/tsconfig.json new file mode 100644 index 0000000000..4c3c43f54c --- /dev/null +++ b/window-or-global/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "window-or-global-tests.ts" + ] +} diff --git a/window-or-global/tslint.json b/window-or-global/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/window-or-global/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/window-or-global/window-or-global-tests.ts b/window-or-global/window-or-global-tests.ts new file mode 100644 index 0000000000..c994f5023c --- /dev/null +++ b/window-or-global/window-or-global-tests.ts @@ -0,0 +1,3 @@ +import * as root from "window-or-global"; + +root.addEventListener("click", () => console.log("Hi!"));