diff --git a/packages/core/src/utils/common.ts b/packages/core/src/utils/common.ts index aa7564b..cb55a9b 100644 --- a/packages/core/src/utils/common.ts +++ b/packages/core/src/utils/common.ts @@ -12,7 +12,7 @@ import { StandardIssue, WithId, } from '../types'; -import { AsyncReturnType } from 'type-fest'; +import { AsyncReturnType, Simplify } from 'type-fest'; import { getDotPath } from '@standard-schema/utils'; export function useUniqId(prefix?: string) { @@ -25,7 +25,7 @@ export function createDescriptionProps(inputId: string): AriaDescriptionProps { }; } -export function createErrorProps(inputId: MaybeRefOrGetter): Ref> { +export function createErrorProps(inputId: MaybeRefOrGetter): Ref>> { return computed(() => ({ id: `${toValue(inputId)}-r`, 'aria-live': 'polite',