2
0
Files
bot/packages/models/features/utils.ts
Baptiste Arnaud ff04edf139 Add OpenAI block
Also migrate credentials to tRPC

Closes #253
2023-03-09 08:46:36 +01:00

10 lines
243 B
TypeScript

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