@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
18 lines • 812 B
TypeScript
import type { FsCondition } from '../../../../errors/index.ts';
import type { ErrnoCodes, FSHost } from './types.ts';
/**
* Build the error a guest syscall should fail with.
*
* Both halves come from the running interpreter: the constructor so the
* kernel recognizes it as an errno rather than a crash, and the number
* so it is musl's and not a literal that happens to be right on Linux.
* A name this build's table does not define answers EIO rather than
* ErrnoError(undefined).
*
* Args:
* host: the Emscripten FS namespace supplying `ErrnoError`.
* codes: that interpreter's errno table (`pyodide.ERRNO_CODES`).
* code: name of the condition to report.
*/
export declare function errnoError(host: FSHost, codes: ErrnoCodes, code: FsCondition): Error;
//# sourceMappingURL=errors.d.ts.map