@2e32/react-select
Version:
A React select component
19 lines • 940 B
TypeScript
/// <reference types="react" />
import type { Nullable, ValueContent, OptionKey, OptionContent, OptionValue } from '../types';
/**
* Получает ключ опции.
*/
export declare const getOptionKey: <T>(option: T, index: number, getter?: OptionKey<T> | undefined) => import("react").Key;
/**
* Получает значение опции.
*/
export declare const getOptionValue: <T>(option: T, getter?: OptionValue<T> | undefined) => unknown;
/**
* Получает отображаемое содержимое опции.
*/
export declare const getOptionContent: <T>(option: T, index: number, getter?: OptionContent<T> | undefined) => import("react").ReactNode;
/**
* Получает отображаемое содержимое значения.
*/
export declare const getValueContent: <T>(value: Nullable<T>, getter?: ValueContent<T> | undefined) => import("react").ReactNode;
//# sourceMappingURL=getter.d.ts.map