useAllowCreate.d.ts 370 B

12345678
  1. import type { SelectV2Props } from './token';
  2. import type { Option, SelectStates } from './select.types';
  3. export declare function useAllowCreate(props: SelectV2Props, states: SelectStates): {
  4. createNewOption: (query: string) => void;
  5. removeNewOption: (option: Option) => void;
  6. selectNewOption: (option: Option) => void;
  7. clearAllNewOption: () => void;
  8. };