chore: improve types export

This commit is contained in:
Benjamin Canac
2024-06-25 17:58:14 +02:00
parent ea288e9624
commit cd7cc0d9a3
50 changed files with 87 additions and 83 deletions

View File

@@ -2,7 +2,7 @@ import type { ZodSchema } from 'zod'
import type { ValidationError as JoiError, Schema as JoiSchema } from 'joi'
import type { ObjectSchema as YupObjectSchema, ValidationError as YupError } from 'yup'
import type { ObjectSchemaAsync as ValibotObjectSchema } from 'valibot'
import type { FormError } from '#ui/types/form'
import type { FormError } from '../types/form'
export function isYupSchema(schema: any): schema is YupObjectSchema<any> {
return schema.validate && schema.__isYupSchema__

View File

@@ -1,5 +1,5 @@
import { reactivePick } from '@vueuse/core'
import type { LinkProps } from '#ui/types'
import type { LinkProps } from '../types'
export function pickLinkProps(link: LinkProps) {
return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type')