Files

13 lines
271 B
TypeScript

import { anyJsonRule } from '#validators/rules/any_json_rule'
import { VineAny } from '@vinejs/vine'
VineAny.macro('anyJson', function (this: VineAny) {
return this.use(anyJsonRule())
})
declare module '@vinejs/vine' {
interface VineAny {
anyJson(): this
}
}