diff --git a/src/runtime/components/Input.vue b/src/runtime/components/Input.vue index b91319e3..7840a1f1 100644 --- a/src/runtime/components/Input.vue +++ b/src/runtime/components/Input.vue @@ -4,7 +4,7 @@ import type { AppConfig } from '@nuxt/schema' import theme from '#build/ui/input' import type { UseComponentIconsProps } from '../composables/useComponentIcons' import type { AvatarProps } from '../types' -import type { ComponentConfig } from '../types/utils' +import type { AcceptableValue, ComponentConfig } from '../types/utils' type Input = ComponentConfig @@ -42,8 +42,8 @@ export interface InputProps extends UseComponentIconsProps { ui?: Input['slots'] } -export interface InputEmits { - (e: 'update:modelValue', payload: string | number): void +export interface InputEmits { + (e: 'update:modelValue', payload: T): void (e: 'blur', event: FocusEvent): void (e: 'change', event: Event): void } @@ -55,7 +55,7 @@ export interface InputSlots { } - -