Skip to content

Commit

Permalink
Add $
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 7, 2023
1 parent b950962 commit 3c5353c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/runtime/src/$.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { MemoryDescriptor, Memory } from './wasm';

export interface Init {
wasmMemNew(descriptor: MemoryDescriptor): Memory;
wasmMemProto(mem: any): void;
}

export const $: Init = (globalThis as any).$;
delete (globalThis as any).$;

0 comments on commit 3c5353c

Please sign in to comment.