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.
1 parent fde6772 commit b127708Copy full SHA for b127708
packages/nestjs/src/decorators.ts
@@ -85,8 +85,8 @@ function copyFunctionNameAndMetadata({
85
originalMethod,
86
descriptor,
87
}: {
88
- originalMethod: (...args: unknown[]) => Promise<unknown> | unknown;
89
descriptor: PropertyDescriptor;
+ originalMethod: (...args: unknown[]) => unknown;
90
}): void {
91
// preserve the original name on the decorated function
92
Object.defineProperty(descriptor.value, 'name', {
0 commit comments