Add initial project files
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user