Skip to content

Commit a4d0ca7

Browse files
committed
fix(FormField): improve error type with boolean
Resolves #4496
1 parent 5ad7dab commit a4d0ca7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime/components/FormField.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface FormFieldProps {
1818
label?: string
1919
description?: string
2020
help?: string
21-
error?: string | boolean
21+
error?: boolean | string
2222
hint?: string
2323
/**
2424
* @defaultValue 'md'
@@ -41,8 +41,8 @@ export interface FormFieldSlots {
4141
hint(props: { hint?: string }): any
4242
description(props: { description?: string }): any
4343
help(props: { help?: string }): any
44-
error(props: { error?: string | boolean }): any
45-
default(props: { error?: string | boolean }): any
44+
error(props: { error?: boolean | string }): any
45+
default(props: { error?: boolean | string }): any
4646
}
4747
</script>
4848

0 commit comments

Comments
 (0)