@sprucelabs/schema
Version:
Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓
11 lines (10 loc) • 509 B
JavaScript
/** How are we being rendered in the template */
export var TemplateRenderAs;
(function (TemplateRenderAs) {
/** We are rendering type literal */
TemplateRenderAs["Type"] = "type";
/** We are rendering as a value (only called if a value is set in the schema definition, like defaultValue) */
TemplateRenderAs["Value"] = "value";
/** We are rendering as the schema's field type (Schema) */
TemplateRenderAs["SchemaType"] = "schemaType";
})(TemplateRenderAs || (TemplateRenderAs = {}));