接续上一轮:推进浏览器验证与M428配置收拢
结论:已完成浏览器侧真实加载验证,M428/M429/M430 的配置入口进一步从 LinuxCNC INI/HALFILE/REMAP 来源生成,native 与 source-link 验证通过。
This commit is contained in:
12
web/src/wasm-core.d.ts
vendored
12
web/src/wasm-core.d.ts
vendored
@@ -1,8 +1,14 @@
|
||||
import type { CncDialect, CncEvent } from "./index";
|
||||
import type { CncDialect, CncEvent, CncParseOptions } from "./index";
|
||||
|
||||
export type WasmSimulator = {
|
||||
parse(program: string, dialect?: CncDialect, options?: { backend?: string }): CncEvent[];
|
||||
parse(program: string, dialect?: CncDialect, options?: CncParseOptions): CncEvent[];
|
||||
dispose(): void;
|
||||
};
|
||||
|
||||
export function createWasmSimulator(): Promise<WasmSimulator>;
|
||||
export type WasmModuleOptions = {
|
||||
locateFile?: (file: string) => string;
|
||||
print?: (text: string) => void;
|
||||
printErr?: (text: string) => void;
|
||||
};
|
||||
|
||||
export function createWasmSimulator(moduleOptions?: WasmModuleOptions): Promise<WasmSimulator>;
|
||||
|
||||
Reference in New Issue
Block a user