@danielsimonjr/mathts-wasm 0.3.3 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/mathts.d.ts CHANGED
@@ -1,5 +1,9 @@
1
+ /** `WebAssembly.Memory` when the project has that type, else an object with its `buffer`. */
2
+ export type WasmMemory = typeof globalThis extends { WebAssembly: { Memory: { prototype: infer Instance } } }
3
+ ? Instance
4
+ : { readonly buffer: ArrayBufferLike };
1
5
  /** Exported memory */
2
- export declare const memory: WebAssembly.Memory;
6
+ export declare const memory: WasmMemory;
3
7
  // Exported runtime interface
4
8
  export declare function __new(size: number, id: number): number;
5
9
  export declare function __pin(ptr: number): number;
package/build/mathts.wasm CHANGED
Binary file