♻️ Re-organize workspace folders
This commit is contained in:
9
packages/schemas/features/utils.ts
Normal file
9
packages/schemas/features/utils.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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>
|
||||
Reference in New Issue
Block a user