Skip to content

Commit

Permalink
underscore unused arg in extractDefined (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuppachino authored Aug 29, 2023
2 parents 9c54ebf + 2bdfd39 commit 7acf7d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-bulldogs-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hexgate": patch
---

transpiler bug fix
2 changes: 1 addition & 1 deletion src/utils/extract-defined.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export function extractDefined<T extends Record<PropertyKey, unknown>>(
) {
if (!obj) return {}
return Object.fromEntries(
Object.entries(obj).filter(([k, v]) => v !== undefined)
Object.entries(obj).filter(([_, v]) => v !== undefined)
) as ExtractDefined<T>
}
2 changes: 1 addition & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"verbatimModuleSyntax": false,
"module": "commonjs",
"moduleResolution": "nodenext",
"moduleResolution": "Node",
"outDir": "dist/cjs"
}
}

0 comments on commit 7acf7d3

Please sign in to comment.