UNPKG

openscad-wasm

Version:

Webassembly port of OpenSCAD

32 lines (31 loc) 987 B
export interface InitOptions { noInitialRun?: boolean; print?: (text: string) => void; printErr?: (text: string) => void; } export interface FS { mkdir(path: string): void; rename(oldpath: string, newpath: string): void; rmdir(path: string): void; stat(path: string): unknown; readFile(path: string): string | Uint8Array; readFile(path: string, opts: { encoding: "utf8"; }): string; readFile(path: string, opts: { encoding: "binary"; }): Uint8Array; writeFile(path: string, data: string | ArrayBufferView): void; unlink(path: string): void; } export interface OpenSCAD { callMain(args: Array<string>): number; FS: FS; onRuntimeInitialized?: () => void; noInitialRun?: boolean; print?: (text: string) => void; printErr?: (text: string) => void; onerror?: (e: any) => void; instantiateWasm: (info: any, receiveInstance: (instance: any) => void) => void; noExitRuntime?: boolean; }