File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { baseMockUser, type User } from "@/user";
4
4
5
5
export type WasmLoadState = "loaded" | "loading" | "error" ;
6
6
7
- type GoPreviewDef = (
7
+ export type GoPreviewDef = (
8
8
/**
9
9
* A virtual filetree
10
10
*/
@@ -13,15 +13,18 @@ type GoPreviewDef = (
13
13
owner : WorkspaceOwner ,
14
14
) => Promise < string > ;
15
15
16
- // Extend the Window object to include the Go related code that is added from
17
- // wasm_exec.js and our loaded Go code.
18
- declare global {
19
- interface Window {
16
+ export type ExtendedWindow = {
20
17
// Loaded from wasm
21
18
go_preview ?: GoPreviewDef ;
22
19
Go : { new ( ) : Go } ;
23
20
CODE ?: string ;
24
21
USERS ?: User [ ] ;
22
+ } ;
23
+
24
+ // Extend the Window object to include the Go related code that is added from
25
+ // wasm_exec.js and our loaded Go code.
26
+ declare global {
27
+ interface Window extends ExtendedWindow {
25
28
}
26
29
}
27
30
You can’t perform that action at this time.
0 commit comments