convex
Version:
Client for the Convex Cloud
18 lines (13 loc) • 659 B
text/typescript
import { z } from "zod";
// TODO share some of these types, to distinguish between encodedComponentDefinitionPaths etc.
export const componentDefinitionPath = z.string();
export type ComponentDefinitionPath = z.infer<typeof componentDefinitionPath>;
export const componentPath = z.string();
export type ComponentPath = z.infer<typeof componentPath>;
export const canonicalizedModulePath = z.string();
export type CanonicalizedModulePath = z.infer<typeof canonicalizedModulePath>;
export const componentFunctionPath = z.object({
component: z.string(),
udfPath: z.string(),
});
export type ComponentFunctionPath = z.infer<typeof componentFunctionPath>;