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

x/live/engine/schema/comments.ts>spannableToJSONSchema

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
variable spannableToJSONSchema
import { spannableToJSONSchema } from "https://deno.land/x/live@1.60.17/engine/schema/comments.ts";

Parses and builds a JSONSchema based on the JsDoc attributes. E.g @title MyTitle becomes { title: "MyTitle" } Receives a @param spannable as an argument which is any statement or expression that contains .span as a property (inherits from HasSpan).

type

(spannable: any) => JSONSchema7