feat: init
This commit is contained in:
28
node_modules/unwasm/dist/tools/index.d.mts
generated
vendored
Normal file
28
node_modules/unwasm/dist/tools/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
//#region src/tools/parser.d.ts
|
||||
type ParsedWasmModule = {
|
||||
id?: string;
|
||||
imports: ModuleImport[];
|
||||
exports: ModuleExport[];
|
||||
};
|
||||
type ModuleImport = {
|
||||
module: string;
|
||||
name: string;
|
||||
returnType?: string;
|
||||
params?: {
|
||||
id?: string;
|
||||
type: string;
|
||||
}[];
|
||||
};
|
||||
type ModuleExport = {
|
||||
name: string;
|
||||
id: string | number;
|
||||
type: "Func" | "Memory";
|
||||
};
|
||||
type ParseResult = {
|
||||
modules: ParsedWasmModule[];
|
||||
};
|
||||
declare function parseWasm(source: Buffer | ArrayBuffer, opts?: {
|
||||
name?: string;
|
||||
}): ParseResult;
|
||||
//#endregion
|
||||
export { ModuleExport, ModuleImport, ParseResult, ParsedWasmModule, parseWasm };
|
||||
5560
node_modules/unwasm/dist/tools/index.mjs
generated
vendored
Normal file
5560
node_modules/unwasm/dist/tools/index.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user