12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import { z } from "zod";
|
|
|
|
export const executionContextSchema = z.object({
|
|
diachron_root: z.string(),
|
|
});
|
|
|
|
export type ExecutionContext = z.infer<typeof executionContextSchema>;
|
|
|
|
export function parseExecutionContext(env: Record<string, string | undefined>): ExecutionContext {
|
|
return executionContextSchema.parse(env);
|
|
}
|