8 lines
345 B
TypeScript
8 lines
345 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import type { PickerRef } from '../../interface';
|
||
|
|
type PickerRefType<OptionType> = Omit<PickerRef, 'focus'> & {
|
||
|
|
focus: (options?: OptionType) => void;
|
||
|
|
};
|
||
|
|
export default function usePickerRef<OptionType>(ref: React.Ref<PickerRefType<OptionType>>): React.MutableRefObject<PickerRefType<OptionType>>;
|
||
|
|
export {};
|