diff --git a/extra/dart_fmt.d.ts b/extra/dart_fmt.d.ts index 104cacb..67556e4 100644 --- a/extra/dart_fmt.d.ts +++ b/extra/dart_fmt.d.ts @@ -9,16 +9,16 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl export type InitOutput = unknown; -export type SyncInitInput = BufferSource | WebAssembly.Module; -/** -* Instantiates the given `module`, which can either be bytes or -* a precompiled `WebAssembly.Module`. -* -* @param {SyncInitInput} module -* -* @returns {InitOutput} -*/ -export function initSync(module: SyncInitInput): InitOutput; +// export type SyncInitInput = BufferSource | WebAssembly.Module; +// /** +// * Instantiates the given `module`, which can either be bytes or +// * a precompiled `WebAssembly.Module`. +// * +// * @param {SyncInitInput} module +// * +// * @returns {InitOutput} +// */ +// export function initSync(module: SyncInitInput): InitOutput; /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and diff --git a/extra/dart_fmt.js b/extra/dart_fmt.js index 739e089..02be746 100644 --- a/extra/dart_fmt.js +++ b/extra/dart_fmt.js @@ -5,17 +5,17 @@ let wasm; function get_imports() {} function init_memory() {} -export function initSync(module) { - if (wasm !== undefined) return wasm; +// export function initSync(module) { +// if (wasm !== undefined) return wasm; - const imports = get_imports(); +// const imports = get_imports(); - init_memory(imports); +// init_memory(imports); - module = normalize(module); +// module = normalize(module); - return (wasm = instantiate(module)); -} +// return (wasm = instantiate(module)); +// } function normalize(module) { if (!(module instanceof WebAssembly.Module)) {