UNPKG

taglib-wasm

Version:

TagLib for TypeScript platforms: Deno, Node.js, Bun, Electron, browsers, and Cloudflare Workers

28 lines 1.1 kB
/** * @fileoverview Static module loader for Deno compile compatibility * * This module provides a version of taglib-wasm that uses static imports * to ensure all dependencies are bundled during Deno compilation. */ import type { LoadTagLibOptions } from "./runtime/loader-types.ts"; import type { TagLibModule } from "./wasm.ts"; /** * Loads and initializes the TagLib WebAssembly module using static imports. * This version ensures all dependencies are bundled during Deno compilation. * * @param options - Optional configuration for module loading * @returns Promise resolving to initialized TagLib module * * @example * ```typescript * // Basic usage in Deno compiled binary * const module = await loadTagLibModuleStatic(); * * // With embedded WASM binary * const wasmBinary = await Deno.readFile('./taglib.wasm'); * const module = await loadTagLibModuleStatic({ wasmBinary }); * ``` */ export declare function loadTagLibModuleStatic(options?: LoadTagLibOptions): Promise<TagLibModule>; export default loadTagLibModuleStatic; //# sourceMappingURL=deno-compile-loader.d.ts.map