mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: remove unused type
This commit is contained in:
parent
853417d470
commit
33fa443342
@ -1,5 +1,6 @@
|
||||
import { isDef, isObject } from '.';
|
||||
import { ObjectIndex } from './types';
|
||||
|
||||
type ObjectIndex = Record<string, any>;
|
||||
|
||||
const { hasOwnProperty } = Object.prototype;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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<string, any>;
|
||||
|
||||
export type ScopedSlot<Props = any> = (
|
||||
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<Props>
|
||||
> = {
|
||||
(
|
||||
h: CreateElement,
|
||||
props: Props,
|
||||
slots: ScopedSlots,
|
||||
context: RenderContext<Props>
|
||||
): VNode | undefined;
|
||||
props?: PropDefs;
|
||||
model?: ModelOptions;
|
||||
inject?: InjectOptions;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user