28 lines
537 B
TypeScript
28 lines
537 B
TypeScript
// just for develop
|
|
|
|
export default {
|
|
open,
|
|
closeAll
|
|
}
|
|
|
|
function open(config: Config): View { return null as any }
|
|
function closeAll(): void { }
|
|
|
|
interface Config {
|
|
title: string
|
|
width: number
|
|
height: number
|
|
sizeMode: string
|
|
isDebug: boolean
|
|
html: string
|
|
url: string
|
|
}
|
|
|
|
interface View {
|
|
close(): void
|
|
setTitle(title: string): void
|
|
setSize(width: number, height: number, sizeMode?: string): void
|
|
loadUrl(url: string): void
|
|
loadHtml(html: string): void
|
|
eval(code: string): void
|
|
} |