client/client.ts

28 lines
537 B
TypeScript
Raw Permalink Normal View History

2024-10-13 23:12:55 +08:00
// 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
}