UNPKG

@tsed/schema-formio

Version:

Transform Ts.ED Schema & JsonSchema to a valid Formio schema

20 lines (19 loc) 392 B
import { Component } from "./component.js"; /** * Configure the property as Currency component. * @decorator * @formio * @property * @schema */ export function Currency(props = {}) { return Component({ currency: "USD", inputFormat: "plain", mask: false, spellcheck: true, delimiter: true, ...props, type: "currency" }); }