Skip to content

Commit 1035222

Browse files
committed
refactoring
1 parent 57d0d14 commit 1035222

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export function normalizeConfig(rawConfig: RawConfig): Config {
5151
skipIsAbstractType: rawConfig.skipIsAbstractType ?? true,
5252
typesPrefix: rawConfig.typesPrefix ?? '',
5353
typesSuffix: rawConfig.typesSuffix ?? '',
54-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
55-
convert: convertFactory(rawConfig as any),
54+
convert: rawConfig.namingConvention
55+
? convertFactory({ namingConvention: rawConfig.namingConvention })
56+
: convertFactory({}),
5657
};
5758
}

0 commit comments

Comments
 (0)