Skip to content

Commit 1cffa70

Browse files
fix(common): fix apply decorators for static properties
1 parent 50e643f commit 1cffa70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/common/decorators/core/apply-decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function applyDecorators(
1616
descriptor?: TypedPropertyDescriptor<Y>,
1717
) => {
1818
for (const decorator of decorators) {
19-
if (target instanceof Function) {
19+
if (target instanceof Function && !descriptor) {
2020
(decorator as ClassDecorator)(target);
2121
continue;
2222
}

0 commit comments

Comments
 (0)