UNPKG

convex

Version:

Client for the Convex Cloud

15 lines 889 B
import { Context } from "./context"; export declare type TypecheckResult = "cantTypeCheck" | "success" | "typecheckFailed"; export declare type TypeCheckMode = "enable" | "try" | "disable"; /** * Conditionally run a typecheck function and interpret the result. * * If typeCheckMode === "disable", never run the typecheck function. * If typeCheckMode === "enable", run the typecheck and crash if typechecking * fails or we can't find tsc. * If typeCheckMode === "try", try and run the typecheck. crash if typechecking * fails but don't worry if tsc is missing and we can't run it. */ export declare function processTypeCheckResult(ctx: Context, typeCheckMode: TypeCheckMode, runTypeCheck: () => Promise<TypecheckResult>): Promise<void>; export declare function typeCheckFunctions(ctx: Context, functionsDir: string): Promise<TypecheckResult>; //# sourceMappingURL=typecheck.d.ts.map