constructor()

in src/type-generator.ts [112:121]


  constructor(options: TypeGeneratorOptions = { }) {
    this.exclude = options.exclude ?? [];
    this.definitions = {};
    this.toJson = options.toJson ?? true;
    this.renderTypeName = options.renderTypeName ?? DEFAULT_RENDER_TYPE_NAME;

    for (const [typeName, def] of Object.entries(options.definitions ?? {})) {
      this.addDefinition(typeName, def);
    }
  }