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