提交依赖与构建产物

This commit is contained in:
wangdequan
2026-06-27 09:25:04 -04:00
parent 2817cba164
commit f0e96308d2
1300 changed files with 844236 additions and 0 deletions

26
kdl-wasm/build-wasm/kdl.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
export interface KdlModule {
ccall: (
ident: string,
returnType: string | null,
argTypes: Array<string | null>,
args: unknown[]
) => unknown;
cwrap: (
ident: string,
returnType: string | null,
argTypes: Array<string | null>
) => (...args: unknown[]) => unknown;
UTF8ToString: (ptr: number) => string;
stringToUTF8: (value: string, outPtr: number, maxBytesToWrite: number) => void;
lengthBytesUTF8: (value: string) => number;
_malloc: (size: number) => number;
_free: (ptr: number) => void;
}
export interface KdlModuleFactoryOptions {
locateFile?: (path: string, prefix: string) => string;
print?: (text: string) => void;
printErr?: (text: string) => void;
}
export default function createKdlModule(options?: KdlModuleFactoryOptions): Promise<KdlModule>;