mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
19 lines
654 B
TypeScript
19 lines
654 B
TypeScript
import type { ComponentClass, ForwardedRef, Component } from 'react';
|
|
import type { PickerProps, RangePickerProps } from '.';
|
|
|
|
export interface CommonPickerMethods {
|
|
focus: () => void;
|
|
blur: () => void;
|
|
}
|
|
|
|
export interface PickerComponentClass<P = {}, S = unknown> extends ComponentClass<P, S> {
|
|
new (...args: ConstructorParameters<ComponentClass<P, S>>): InstanceType<ComponentClass<P, S>> &
|
|
CommonPickerMethods;
|
|
}
|
|
|
|
export type PickerRef<P> = ForwardedRef<Component<P> & CommonPickerMethods>;
|
|
|
|
export type DatePickRef<DateType> = PickerRef<PickerProps<DateType>>;
|
|
|
|
export type RangePickerRef<DateType> = PickerRef<RangePickerProps<DateType>>;
|