diff --git a/src/utils/deep-assign.ts b/src/utils/deep-assign.ts index 6a175c57a..4c5b7b877 100644 --- a/src/utils/deep-assign.ts +++ b/src/utils/deep-assign.ts @@ -1,5 +1,6 @@ import { isDef, isObject } from '.'; -import { ObjectIndex } from './types'; + +type ObjectIndex = Record; const { hasOwnProperty } = Object.prototype; diff --git a/src/utils/dom/event.ts b/src/utils/dom/event.ts index 7bd55f859..073df3899 100644 --- a/src/utils/dom/event.ts +++ b/src/utils/dom/event.ts @@ -1,5 +1,6 @@ import { inBrowser } from '..'; -import { EventHandler } from '../types'; + +type EventHandler = (event: Event) => void; // eslint-disable-next-line import/no-mutable-exports export let supportsPassive = false; diff --git a/src/utils/types.ts b/src/utils/types.ts deleted file mode 100644 index 14821d4b6..000000000 --- a/src/utils/types.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { VNode, CreateElement, RenderContext } from 'vue'; -import { InjectOptions, PropsDefinition } from 'vue/types/options'; - -export type EventHandler = (event: Event) => void; - -export type ObjectIndex = Record; - -export type ScopedSlot = ( - props?: Props -) => VNode[] | VNode | undefined; - -export type DefaultSlots = { - default?: ScopedSlot; -}; - -export type ScopedSlots = DefaultSlots & { - [key: string]: ScopedSlot | undefined; -}; - -export type ModelOptions = { - prop?: string; - event?: string; -}; - -export type DefaultProps = ObjectIndex; - -export type FunctionComponent< - Props = DefaultProps, - PropDefs = PropsDefinition -> = { - ( - h: CreateElement, - props: Props, - slots: ScopedSlots, - context: RenderContext - ): VNode | undefined; - props?: PropDefs; - model?: ModelOptions; - inject?: InjectOptions; -};