change window: any to window: Window in types/jschannel/index.d.ts; add "dom" to lib in types/jschannel/tsconfig.json; fix test in types/jschannel/jschannel-tests.ts (#29711)

add my username and github url to Definitions by section of types/jschannel/index.d.ts
This commit is contained in:
BRAINS YUM
2018-10-15 09:49:30 -07:00
committed by Sheetal Nandi
parent c799ce19bf
commit 01eeef8ccf
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for jschannel 1.0
// Project: https://github.com/yochannah/jschannel
// Definitions by: Yitzchok Gottlieb <https://github.com/yitzchok>
// McFlat <https://github.com/McFlat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
@@ -25,7 +26,7 @@ export interface Message {
}
export interface ChannelConfiguration {
window: any;
window: Window;
origin: string;
scope: string;
debugOutput?: boolean;
+1 -1
View File
@@ -1,3 +1,3 @@
import { build } from 'jschannel';
build({ window: null, origin: "*", scope: "testScope"});
build({ window, origin: "*", scope: "testScope"});
+3 -2
View File
@@ -2,7 +2,8 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
@@ -20,4 +21,4 @@
"index.d.ts",
"jschannel-tests.ts"
]
}
}