Skip to content

Commit b127708

Browse files
committed
update return type
1 parent fde6772 commit b127708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nestjs/src/decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ function copyFunctionNameAndMetadata({
8585
originalMethod,
8686
descriptor,
8787
}: {
88-
originalMethod: (...args: unknown[]) => Promise<unknown> | unknown;
8988
descriptor: PropertyDescriptor;
89+
originalMethod: (...args: unknown[]) => unknown;
9090
}): void {
9191
// preserve the original name on the decorated function
9292
Object.defineProperty(descriptor.value, 'name', {

0 commit comments

Comments
 (0)