Skip to content

Commit

Permalink
refactor(core): do not use object entries use object keys instead
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaugomez committed May 27, 2024
1 parent d58be69 commit 673724b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/decorators/expose_all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function ExposeAll(options?: ExposeAllOptions) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function (target: any) {
const object = new target();
Object.entries(object).forEach(([propertyName]) => {
Object.keys(object).forEach((propertyName) => {
const exposeMetadata = defaultMetadataStorage.findExposeMetadata(target, propertyName);
defaultMetadataStorage.addExposeMetadata({
target,
Expand Down

0 comments on commit 673724b

Please sign in to comment.