mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-24 20:34:05 +02:00
Adds packages/plugin-sandbox: QuickJS-ng compiled to wasm, running in a dedicated worker, with a runtime shell inside it that loads a plugin bundle and answers the same InternalEventPayload events the Node runtime answers. Plugins are unmodified. Wires the browser host's template function, authentication, cURL import and template render commands to it, and relaxes TemplateCallback's Send bound on wasm32 so the engine's renderer can call back out to a plugin.
35 lines
2.3 KiB
TypeScript
35 lines
2.3 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
export const memory: WebAssembly.Memory;
|
|
export const blob_delete: (a: number, b: number) => [number, number];
|
|
export const blob_get: (a: number, b: number) => [number, number, number, number];
|
|
export const blob_put: (a: number, b: number, c: number, d: number) => [number, number];
|
|
export const boot: () => any;
|
|
export const prepare_http_send: (a: any, b: any) => any;
|
|
export const render_template: (a: any, b: any) => any;
|
|
export const rpc: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
|
|
export const rust_sqlite_wasm_abort: () => void;
|
|
export const rust_sqlite_wasm_assert_fail: (a: number, b: number, c: number, d: number) => void;
|
|
export const rust_sqlite_wasm_calloc: (a: number, b: number) => number;
|
|
export const rust_sqlite_wasm_free: (a: number) => void;
|
|
export const rust_sqlite_wasm_getentropy: (a: number, b: number) => number;
|
|
export const rust_sqlite_wasm_localtime: (a: number) => number;
|
|
export const rust_sqlite_wasm_malloc: (a: number) => number;
|
|
export const rust_sqlite_wasm_realloc: (a: number, b: number) => number;
|
|
export const sqlite3_os_end: () => number;
|
|
export const sqlite3_os_init: () => number;
|
|
export const wasm_bindgen__convert__closures_____invoke__ha1c2fa93df0107f3: (a: number, b: number, c: any) => [number, number];
|
|
export const wasm_bindgen__convert__closures_____invoke__h20ab1db2d80221ce: (a: number, b: number, c: any) => [number, number];
|
|
export const wasm_bindgen__convert__closures_____invoke__h2cf3f4cce3b29948: (a: number, b: number, c: any, d: any) => void;
|
|
export const wasm_bindgen__convert__closures_____invoke__ha7903b6e296dd8f4: (a: number, b: number, c: any) => void;
|
|
export const wasm_bindgen__convert__closures_____invoke__ha1b480b83daa641f: (a: number, b: number) => void;
|
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
export const __externref_table_alloc: () => number;
|
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
export const __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
export const __externref_table_dealloc: (a: number) => void;
|
|
export const __wbindgen_start: () => void;
|