Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/blocks/engine/schema/utils.ts>parseJSDocAttribute

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
variable parseJSDocAttribute
import { parseJSDocAttribute } from "https://deno.land/x/blocks@1.102.2/engine/schema/utils.ts";

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

type

(key: string, value: string) => unknown