fix: generator incorrectly appends <T> to name of files (#8011)

This commit is contained in:
Anže Vodovnik 2021-08-05 20:17:51 +02:00 committed by GitHub
parent 99654899df
commit 8792955f82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,7 +568,7 @@ function renderMethod(member, parent, name, options, out) {
if (arg.name === 'options') {
if (options.mode === 'options' || options.mode === 'base') {
const optionsType = member.clazz.name + name + 'Options';
const optionsType = member.clazz.name + name.replace('<T>', '') + 'Options';
optionTypes.set(optionsType, arg.type);
args.push(`${optionsType}? options = default`);
argTypeMap.set(`${optionsType}? options = default`, 'options');