fuc-new/doc/node_modules/vuepress-plugin-md-power/lib/client/composables/rustRepl.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

17 lines
419 B
TypeScript

//#region src/client/composables/rustRepl.d.ts
declare function rustExecute(code: string, {
onEnd,
onError,
onStderr,
onStdout,
onBegin
}: RustExecuteOptions): Promise<void>;
interface RustExecuteOptions {
onBegin?: () => void;
onStdout?: (message: string) => void;
onStderr?: (message: string) => void;
onEnd?: () => void;
onError?: (message: string) => void;
}
//#endregion
export { rustExecute };