import { spannableToJSONSchema } from "https://deno.land/x/live@1.60.23/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