add spine js mem (#364)

update
This commit is contained in:
PP 2023-06-16 14:14:17 +08:00 committed by GitHub
parent 712e10655a
commit 9d201cd6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 59 additions and 6 deletions

View File

@ -1,7 +1,15 @@
declare module 'external:emscripten/*.wasm' {
/**
* This is a url relative from build output chunk.
* This is a wasm url relative from build output chunk.
*/
const wasmPath: string;
export default wasmPath;
}
declare module 'external:emscripten/*.js.mem' {
/**
* This is a js.mem url relative from build output chunk.
*/
const jsMemPath: string;
export default jsMemPath;
}

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@ declare module 'external:emscripten/spine/spine.asm.js' {
export default SpineWasm;
}
declare module 'external:emscripten/spine/spine.js' {
declare module 'external:emscripten/spine/spine.wasm.js' {
export default SpineWasm;
}
@ -10,10 +10,7 @@ declare module 'external:emscripten/spine/spine.js' {
declare function SpineWasm (moduleOptions?: any): Promise<void>;
declare namespace SpineWasm {
type ptr = number;
interface instance {
spine: any;
memory: any;
spineWasmInit(): void;
spineWasmDestroy(): void;
}

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long