deno.land / x / esm@v135_2 / server / embed / types / hot.d.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export interface Plugin { name: string; setup: (hot: HotCore) => void;}
export interface ArchiveEntry { name: string; type: string; lastModified: number; offset: number; size: number;}
export interface VFS { has(name: string): Promise<boolean>; get(name: string): Promise<File | undefined>; put(file: File): Promise<string>; delete(name: string): Promise<void>;}
export interface FireOptions { main?: string; swScript?: string; swUpdateViaCache?: ServiceWorkerUpdateViaCache;}
export interface HotCore { readonly vfs: VFS; fire(options?: FireOptions): Promise<void>; listen(): void; onFire(handler: (reg: ServiceWorker) => void): this; onUpdateFound: () => void; use(...plugins: readonly Plugin[]): this; waitUntil(...promises: readonly Promise<any>[]): this;}
declare global { interface HotAPI {}}
export interface Hot extends HotCore, HotAPI {}
export const hot: Hot;export default hot;
esm

Version Info

Tagged at
a year ago