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.
InternshipProject/node_modules/rc-select/lib/hooks/useOptions.d.ts

12 lines
448 B

import * as React from 'react';
import type { FieldNames, RawValueType } from '../Select';
/**
* Parse `children` to `options` if `options` is not provided.
* Then flatten the `options`.
*/
export default function useOptions<OptionType>(options: OptionType[], children: React.ReactNode, fieldNames: FieldNames): {
options: OptionType[];
valueOptions: Map<RawValueType, OptionType>;
labelOptions: Map<React.ReactNode, OptionType>;
};