@data-driven-forms/react-form-renderer
Version:
React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.
9 lines (8 loc) • 310 B
TypeScript
import { DataTypeValidators } from '../validators/validators';
/**
* Changes the value type
* @param {FieldDataTypes} dataType type for value conversion
* @param {Any} value value to be converted
*/
declare const convertType: (dataType: DataTypeValidators, value?: any) => any;
export default convertType;