Skip to content

Commit

Permalink
refactor(wasm-api): regenerate TS bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 10, 2024
1 parent 42c6fa3 commit c540cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
12 changes: 3 additions & 9 deletions packages/wasm-api-dom/src/generated/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated by @thi.ng/wasm-api-bindgen at 2024-11-10T14:29:04.825Z
* Generated by @thi.ng/wasm-api-bindgen at 2024-11-10T16:53:43.244Z
* DO NOT EDIT!
*/

Expand Down Expand Up @@ -986,12 +986,7 @@ export interface CreateElementOpts extends WasmTypeBase {

// @ts-ignore possibly unused args
export const $CreateElementOpts = defType<CreateElementOpts>(4, 48, (mem, base) => {
let $tag: WasmStringPtr;
let $ns: WasmStringPtr;
let $id: WasmStringPtr;
let $class: WasmStringPtr;
let $text: WasmStringPtr;
let $html: WasmStringPtr;
let $tag: WasmStringPtr, $ns: WasmStringPtr, $id: WasmStringPtr, $class: WasmStringPtr, $text: WasmStringPtr, $html: WasmStringPtr;
return {
get tag(): WasmStringPtr {
return $tag || ($tag = __str(mem, base));
Expand Down Expand Up @@ -1084,8 +1079,7 @@ export interface CreateCanvasOpts extends WasmTypeBase {

// @ts-ignore possibly unused args
export const $CreateCanvasOpts = defType<CreateCanvasOpts>(4, 32, (mem, base) => {
let $id: WasmStringPtr;
let $class: WasmStringPtr;
let $id: WasmStringPtr, $class: WasmStringPtr;
return {
get width(): number {
return mem.u16[base >>> 1];
Expand Down
5 changes: 2 additions & 3 deletions packages/wasm-api-webgl/src/generated/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated by @thi.ng/wasm-api-bindgen at 2024-11-10T14:29:05.935Z
* Generated by @thi.ng/wasm-api-bindgen at 2024-11-10T16:53:44.121Z
* DO NOT EDIT!
*/

Expand Down Expand Up @@ -112,8 +112,7 @@ export interface ShaderSpec extends WasmTypeBase {

// @ts-ignore possibly unused args
export const $ShaderSpec = defType<ShaderSpec>(4, 32, (mem, base) => {
let $vs: WasmStringPtr;
let $fs: WasmStringPtr;
let $vs: WasmStringPtr, $fs: WasmStringPtr;
return {
get vs(): WasmStringPtr {
return $vs || ($vs = __str(mem, base));
Expand Down

0 comments on commit c540cb4

Please sign in to comment.