mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
committed by
Sheetal Nandi
parent
c799ce19bf
commit
01eeef8ccf
Vendored
+2
-1
@@ -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,3 +1,3 @@
|
||||
import { build } from 'jschannel';
|
||||
|
||||
build({ window: null, origin: "*", scope: "testScope"});
|
||||
build({ window, origin: "*", scope: "testScope"});
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user