Skip to content

Commit

Permalink
refactor(api): prefer forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 10, 2024
1 parent 21c863c commit cfbe1be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nine-kangaroos-notice.md
@@ -0,0 +1,5 @@
---
"@vue-macros/api": patch
---

prefer `forEach`
2 changes: 1 addition & 1 deletion packages/api/src/vue/props.ts
Expand Up @@ -295,7 +295,7 @@ export async function handleTSPropsDefinition({
const defs = await resolveDefinitions({ type, scope }).then(
({ definitions }) => definitions,
)
Object.keys(defs).map((key) => keys.add(key))
Object.keys(defs).forEach((key) => keys.add(key))
unionDefs.push(defs)
}

Expand Down

0 comments on commit cfbe1be

Please sign in to comment.