Skip to content

Commit

Permalink
tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Dec 23, 2024
1 parent 5825c24 commit b1b8ba8
Show file tree
Hide file tree
Showing 8 changed files with 2,669 additions and 6,760 deletions.
2 changes: 2 additions & 0 deletions bindings/wysiwyg-wasm/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ async function loadModule() {
mod = await WebAssembly.compile(bytes);
}

/** @type {{exports: typeof import("./pkg/wysiwyg_bg.wasm.d.ts")}} */
// @ts-expect-error: Typescript doesn't know what the instance exports exactly
const instance = await WebAssembly.instantiate(mod, {
'./wysiwyg_bg.js': bindings,
});
Expand Down
2 changes: 2 additions & 0 deletions bindings/wysiwyg-wasm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ async function loadModule() {
mod = await WebAssembly.compile(bytes);
}

/** @type {{exports: typeof import("./pkg/wysiwyg_bg.wasm.d.ts")}} */
// @ts-expect-error: Typescript doesn't know what the instance exports exactly
const instance = await WebAssembly.instantiate(mod, {
'./wysiwyg_bg.js': bindings,
});
Expand Down
1 change: 0 additions & 1 deletion bindings/wysiwyg-wasm/node.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ bindings.__wbg_set_wasm(
{
get(_target, prop) {
const instance = loadModuleSync();
// @ts-expect-error: This results in an `any` type, which is fine
return instance[prop];
},
},
Expand Down
1 change: 0 additions & 1 deletion bindings/wysiwyg-wasm/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ bindings.__wbg_set_wasm(
{
get(_target, prop) {
const instance = loadModuleSync();
// @ts-expect-error: This results in an `any` type, which is fine
return instance[prop];
},
},
Expand Down
Loading

0 comments on commit b1b8ba8

Please sign in to comment.