Skip to content

Commit

Permalink
gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
betaveros committed Apr 6, 2024
1 parent 016d7ae commit d79e98c
Show file tree
Hide file tree
Showing 8 changed files with 429 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<h1>noulith</h1>
<label for="code">Code:</label>
<textarea id="code"></textarea>
<label for="input">Input:</label> <select id="input-select"><option value="">user input</option><option value="file">file</option></select> <input type="file" id="input-file" />
<label for="input">Input:</label> <select id="input-select"><option value="">user input</option><option value="ukacd.gz">UKACD.gz (use read_compressed())</option><option value="yawl.gz">YAWL.gz (use read_compressed())</option><option value="file">file</option></select> <input type="file" id="input-file" />
<textarea id="input"></textarea>
<button id="run" type="button" role="button" disabled>Loading...</button>
<button id="stop" type="button" role="button" disabled>Loading...</button>
Expand Down
32 changes: 32 additions & 0 deletions pkg/noulith.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
declare namespace wasm_bindgen {
/* tslint:disable */
/* eslint-disable */
/**
* @param {string} code
* @param {Uint8Array} input
* @param {boolean} fancy
* @returns {Array<any>}
*/
export function encapsulated_eval(code: string, input: Uint8Array, fancy: boolean): Array<any>;

}

declare type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

declare interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly encapsulated_eval: (a: number, b: number, c: number, d: number, e: number) => number;
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_exn_store: (a: number) => void;
}

/**
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.
*
* @param {InitInput | Promise<InitInput>} module_or_path
*
* @returns {Promise<InitOutput>}
*/
declare function wasm_bindgen (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
Loading

0 comments on commit d79e98c

Please sign in to comment.