@rbxts/rotype
Version:
Advanced runtime type checking library
11 lines (10 loc) • 326 B
TypeScript
import { Issue, Path } from "./errors";
import { Result } from "./result";
export interface Ctx {
path: Path;
push(issue: Issue): void;
child(key: string | number): Ctx;
ok<T>(val: T): Result<T, Issue[]>;
err(issues: Issue[]): Result<any, Issue[]>;
}
export declare function makeCtx(basePath?: Path): Ctx;