mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
chore: remove unused interface file (#34011)
This commit is contained in:
parent
0c422fe1b7
commit
92d5820457
@ -1,18 +0,0 @@
|
||||
import type { ComponentClass, ForwardedRef, Component } from 'react';
|
||||
import { 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>>;
|
@ -1,4 +1,5 @@
|
||||
import { ComponentClass } from 'react';
|
||||
import type { ComponentClass, ForwardedRef, Component } from 'react';
|
||||
import { PickerProps, RangePickerProps } from '.';
|
||||
|
||||
export interface CommonPickerMethods {
|
||||
focus: () => void;
|
||||
@ -9,3 +10,9 @@ export interface PickerComponentClass<P = {}, S = unknown> extends ComponentClas
|
||||
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>>;
|
||||
|
Loading…
Reference in New Issue
Block a user