@compas/code-gen
Version:
Generate various boring parts of your server
12 lines (11 loc) • 354 B
TypeScript
/**
* Preprocess 'anyOf' types
*
* - Make optional if one of the values is optional
* - Make nullable if one of the values is nullable
*
* Double check on discriminant usage
*
* @param {import("../generate.js").GenerateContext} generateContext
*/
export function anyOfPreProcess(generateContext: import("../generate.js").GenerateContext): void;