add window-or-global (#13040)

This commit is contained in:
Masahiro Wakame
2016-12-08 13:26:52 +09:00
committed by GitHub
parent 731a29f70d
commit 2d277c009a
4 changed files with 30 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for window-or-global 1.0
// Project: https://github.com/purposeindustries/window-or-global
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var _: any;
export = _;
+19
View File
@@ -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"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }
@@ -0,0 +1,3 @@
import * as root from "window-or-global";
root.addEventListener("click", () => console.log("Hi!"));