synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
10 lines • 488 B
TypeScript
export type EnumeratedValue = string | number | boolean | null | Record<string, unknown> | Array<unknown>;
/**
* Returns a list of enumerated values from the given JSON schema.
* @param jsonSchema the JSON schema to extract enumerated values from
* @returns an array of values that are valid options for the schema
*/
export default function getEnumeratedValues(jsonSchema: Record<string, unknown>): {
value: EnumeratedValue;
}[];
//# sourceMappingURL=getEnumeratedValues.d.ts.map