UNPKG

@appsemble/lang-sdk

Version:

Language SDK for Appsemble

30 lines (22 loc) 1.07 kB
import { schemaExample } from '../../examples.js'; export const numberRemappers = { 'number.parse': { anyOf: [ { enum: [null] }, { type: 'string' }, { $ref: '#/components/schemas/ArrayRemapperDefinition' }, { $ref: '#/components/schemas/ObjectRemapperDefinition' }, ], description: `Convert a string into a number. If there is no remapper passed and the input can be converted, this will return the converted input. If there is no remapper passed and the input is null, this will return 0. If there is no remapper passed and the input cannot be converted, this will return the input. If there is a remapper passed and the remapped value can be converted, this will return the converted remapped value. If there is a remapper passed and the remapped value is null, this will return 0. If there is a remapper passed and the remapped value cannot be converted, this will return the remapped value. For example: ${schemaExample('number.parse')} `, }, }; //# sourceMappingURL=numbers.js.map