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