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

@@ -1,5 +1,5 @@
import { inject, provide, computed, type ComputedRef, type InjectionKey } from 'vue'
import type { AvatarGroupProps } from '#ui/types'
import type { AvatarGroupProps } from '../types'
export const avatarGroupInjectionKey: InjectionKey<ComputedRef<{ size: AvatarGroupProps['size'] }>> = Symbol('nuxt-ui.avatar-group')

View File

@@ -1,7 +1,7 @@
import { type InjectionKey, type ComputedRef } from 'vue'
import { inject, computed } from 'vue'
import type { GetObjectField } from '#ui/types/utils'
import type { ButtonGroupProps } from '../components/ButtonGroup.vue'
import type { GetObjectField } from '../types/utils'
export const buttonGroupInjectionKey: InjectionKey<ComputedRef<{
size: ButtonGroupProps ['size']

View File

@@ -1,8 +1,8 @@
import { inject, ref, computed, type InjectionKey, type Ref, type ComputedRef } from 'vue'
import { type UseEventBusReturn, useDebounceFn } from '@vueuse/core'
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '#ui/types/form'
import type { GetObjectField } from '#ui/types/utils'
import type { FormFieldProps } from '#ui/types'
import type { FormFieldProps } from '../types'
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form'
import type { GetObjectField } from '../types/utils'
type Props<T> = {
id?: string

View File

@@ -1,8 +1,8 @@
import { ref, inject } from 'vue'
import type { ShallowRef, Component, InjectionKey } from 'vue'
import { createSharedComposable } from '@vueuse/core'
import type { ModalProps } from '#ui/types'
import type { ComponentProps } from '#ui/types/component'
import type { ModalProps } from '../types'
import type { ComponentProps } from '../types/component'
export interface ModalState {
component: Component | string

View File

@@ -1,8 +1,8 @@
import { ref, inject } from 'vue'
import type { ShallowRef, Component, InjectionKey } from 'vue'
import { createSharedComposable } from '@vueuse/core'
import type { SlideoverProps } from '#ui/types'
import type { ComponentProps } from '#ui/types/component'
import type { SlideoverProps } from '../types'
import type { ComponentProps } from '../types/component'
export interface SlideoverState {
component: Component | string

View File

@@ -1,5 +1,5 @@
import type { ToastProps } from '#ui/types'
import { useState } from '#imports'
import type { ToastProps } from '../types'
export interface Toast extends Omit<ToastProps, 'defaultOpen'> {
id: string | number