@thi.ng/wasm-api
Version:
Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects
12 lines • 522 B
TypeScript
import type { Fn2 } from "@thi.ng/api";
import type { IWasmMemoryAccess, WasmTypeBase, WasmTypeConstructor } from "./api.js";
/**
* Shared construction helper for types generated by
* [thi.ng/wasm-api-bindgen](https://thi.ng/wasm-api-bindgen).
*
* @param align
* @param size
* @param instance
*/
export declare const defType: <T extends WasmTypeBase>(align: number, size: number, instance: Fn2<IWasmMemoryAccess, number, Omit<T, keyof WasmTypeBase>>) => WasmTypeConstructor<T>;
//# sourceMappingURL=deftype.d.ts.map