Files
admin/apps/backend/app/validators/schemas/json_object_schema.ts
T

14 lines
286 B
TypeScript

import vine from '@vinejs/vine'
export type JsonValue =
| string
| number
| boolean
| null
| JsonValue[]
| { [key: string]: JsonValue }
export type JsonObject = Record<string, JsonValue>
export const jsonObjectSchema = vine.object({}).allowUnknownProperties<JsonValue>()