synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
13 lines • 624 B
TypeScript
import { Widget, EnumOptionsType } from '@rjsf/utils';
/**
* This function finds the enum option that has the corresponding value and returns it.
*
* If value is nullish, this fn returns null. If there is no corresponding option, then a new object is returned
* where the label and value are set to the provided value.
*/
export declare function findValueOption(value: string | null | undefined, options: EnumOptionsType[]): EnumOptionsType | string | null;
/**
* Select widget compatible with react-jsonschema-form enumerations
*/
export declare const SelectWidget: Widget;
//# sourceMappingURL=SelectWidget.d.ts.map