import { z } from "zod"; import { looseObject } from "./utils.js"; // TODO share some of these types, to distinguish between encodedComponentDefinitionPaths etc. export const componentDefinitionPath = z.string(); export type ComponentDefinitionPath = z.infer; export const componentPath = z.string(); export type ComponentPath = z.infer; export const canonicalizedModulePath = z.string(); export type CanonicalizedModulePath = z.infer; export const componentFunctionPath = looseObject({ component: z.string(), udfPath: z.string(), }); export type ComponentFunctionPath = z.infer;