x-to-zod / registerParser
Function: registerParser()
ts
function registerParser(typeKind, cls): void;Defined in: src/JsonSchema/parsers/registry.ts:46
Register a custom parser for a given typeKind. The parser class must implement the Parser interface (typeKind + parse()). Runtime validation ensures structural correctness (Risk 7).
Parameters
typeKind
string
The schema type identifier this parser handles
cls
The parser constructor to register
Returns
void