Walks the HashbrownType graph, finds any sub-schemas seen more than once (excluding the root), assigns each a unique name, and emits a draft-07 JSON Schema with a $defs section. Cycles always become $refs.
API
export declare function toJsonSchema(
schema: HashbrownType ,
): any;
toJsonSchema
any
@param
schema:
HashbrownType
@returns
any