We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 584c6e0 commit 63d75acCopy full SHA for 63d75ac
1 file changed
src/api/builder.ts
@@ -369,10 +369,10 @@ export class APIBuilder {
369
complexType: [],
370
},
371
};
372
- const opts = {
+ const opts: MustacheGeneratorOptions = {
373
...defaultMustacheOpts,
374
...Object.fromEntries(Object.entries(userOpts).filter(([_, v]) => v !== undefined)),
375
- } as MustacheGeneratorOptions;
+ };
376
const generator = writerToGenerator(Mustache.createGenerator(opts));
377
this.generators.set(`mustache[${opts.templatePath}]`, generator);
378
this.logger.debug(`Configured TypeScript generator (${JSON.stringify(opts, undefined, 2)})`);
0 commit comments