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";
44
55export type WasmLoadState = "loaded" | "loading" | "error" ;
66
7- type GoPreviewDef = (
7+ export type GoPreviewDef = (
88 /**
99 * A virtual filetree
1010 */
@@ -13,15 +13,18 @@ type GoPreviewDef = (
1313 owner : WorkspaceOwner ,
1414) => Promise < string > ;
1515
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 = {
2017 // Loaded from wasm
2118 go_preview ?: GoPreviewDef ;
2219 Go : { new ( ) : Go } ;
2320 CODE ?: string ;
2421 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 {
2528 }
2629}
2730
You can’t perform that action at this time.
0 commit comments