@nestledjs/forms
Version:
A flexible React form library supporting both declarative and imperative usage patterns with TypeScript support
14 lines (13 loc) • 448 B
TypeScript
import { SearchSelectOption, SearchSelectApolloOptions } from '../form-types';
type RequiredItemShape = {
id: string;
name?: string;
firstName?: string;
lastName?: string;
};
export declare function useApolloSearch<TDataItem extends RequiredItemShape>(fieldOptions: SearchSelectApolloOptions<TDataItem>): {
options: SearchSelectOption[];
loading: boolean;
handleSearchChange: (searchTerm: string) => void;
};
export {};