Files

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>()