useAllowCreate.d.ts 372 B

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