We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 767c9da + e970aa4 commit cd646d5Copy full SHA for cd646d5
lib/factories/definitions.factory.ts
@@ -94,8 +94,8 @@ export class DefinitionsFactory {
94
}
95
if (typeof optionsOrType?.ref === 'function') {
96
try {
97
- optionsOrType.ref =
98
- (optionsOrType.ref as Function)()?.name ?? optionsOrType.ref;
+ const result = (optionsOrType.ref as Function)();
+ optionsOrType.ref = result?.name ?? result;
99
} catch (err) {
100
if (err instanceof TypeError) {
101
const refClassName = (optionsOrType.ref as Function)?.name;
0 commit comments