Home > scrubbr > Scrubbr > getSchemaFor
Scrubbr.getSchemaFor() method¶
Get the the generated JSON schema for a TypeScript type.
Signature:
getSchemaFor(typeName: string): JSONSchema7 | null;
Parameters¶
Parameter | Type | Description |
---|---|---|
typeName | string | The name of the type to return the schema for. |
Returns:
JSONSchema7 | null
The JSON schema for the type, or null if it was not found.