mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +01:00
docs(Form): fix valibot example typecheck
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { string, object, email, minLength, Input } from 'valibot'
|
import { string, objectAsync, email, minLength, Input } from 'valibot'
|
||||||
import type { FormSubmitEvent } from '@nuxt/ui/dist/runtime/types'
|
import type { FormSubmitEvent } from '@nuxt/ui/dist/runtime/types'
|
||||||
|
|
||||||
const schema = object({
|
const schema = objectAsync({
|
||||||
email: string([email('Invalid email')]),
|
email: string([email('Invalid email')]),
|
||||||
password: string([minLength(8, 'Must be at least 8 characters')])
|
password: string([minLength(8, 'Must be at least 8 characters')])
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user