Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/live/engine/schema/utils.ts

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
import * as live from "https://deno.land/x/live@1.57.8/engine/schema/utils.ts";

Variables

Transforms myPropName into "My Prop Name" for cases when there's no label specified

Some attriibutes are not string in JSON Schema. Because of that, we need to parse some to boolean or number. For instance, maxLength and maxItems have to be parsed to number. readOnly should be a boolean etc