Skip to content
File

Blob: src/contracts/execution/primitives.ts

typescript13 lines
1import { eg, type TypeFromCodec } from "@cloudflare/util-en-garde";
2 
3export const StepStatus = eg.union([
4 eg.literal("queued"),
5 eg.literal("running"),
6 eg.literal("passed"),
7 eg.literal("failed"),
8]);
9export type StepStatus = TypeFromCodec<typeof StepStatus>;
10 
11export const LogStream = eg.union([eg.literal("stdout"), eg.literal("stderr"), eg.literal("system")]);
12export type LogStream = TypeFromCodec<typeof LogStream>;