import { z } from 'zod' export type IdMap = { [id: string]: T } export const schemaForType = () => >(arg: S) => { return arg } export const variableStringSchema = z.custom<`{{${string}}}`>((val) => /^{{.+}}$/g.test(val as string) ) export type VariableString = z.infer