Skip to content

Commit

Permalink
fix(types): cleanup type of the error object
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Nov 24, 2024
1 parent 6590dba commit 3d7699a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -25,7 +25,7 @@ export function createDescriptionProps(inputId: string): AriaDescriptionProps {
};
}

export function createErrorProps(inputId: MaybeRefOrGetter<string>): Ref<WithId<AriaErrorMessageProps>> {
export function createErrorProps(inputId: MaybeRefOrGetter<string>): Ref<Simplify<WithId<AriaErrorMessageProps>>> {
return computed(() => ({
id: `${toValue(inputId)}-r`,
'aria-live': 'polite',
Expand Down

0 comments on commit 3d7699a

Please sign in to comment.