Skip to content

Commit 63d75ac

Browse files
committed
Increase type safety.
1 parent 584c6e0 commit 63d75ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ export class APIBuilder {
369369
complexType: [],
370370
},
371371
};
372-
const opts = {
372+
const opts: MustacheGeneratorOptions = {
373373
...defaultMustacheOpts,
374374
...Object.fromEntries(Object.entries(userOpts).filter(([_, v]) => v !== undefined)),
375-
} as MustacheGeneratorOptions;
375+
};
376376
const generator = writerToGenerator(Mustache.createGenerator(opts));
377377
this.generators.set(`mustache[${opts.templatePath}]`, generator);
378378
this.logger.debug(`Configured TypeScript generator (${JSON.stringify(opts, undefined, 2)})`);

0 commit comments

Comments
 (0)