You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
372 B

3 months ago
  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. };