@web-lite/api-types
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -436,7 +436,7 @@ ///////////////////////// | ||
declare interface IWindow { | ||
W: W; | ||
[key: string]: any; | ||
declare global { | ||
interface Window { | ||
W: W; | ||
} | ||
} | ||
export = IWindow; | ||
export = Window; |
@@ -6,3 +6,3 @@ { | ||
"author": "Weblite Team", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Use W with type checking and docs out of the box.", | ||
@@ -9,0 +9,0 @@ "keywords": [ |
@@ -20,3 +20,3 @@ # api-types | ||
```ts | ||
import { IWindow } from '@web-lite/api-types'; | ||
import IWindow from '@web-lite/api-types'; | ||
@@ -23,0 +23,0 @@ const W = (window as IWindow).W; |
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"lib": ["es6"], | ||
"lib": ["es6", "DOM"], | ||
"noImplicitAny": true, | ||
@@ -6,0 +6,0 @@ "noImplicitThis": true, |
416
16239