Repository navigation
feat: typed Object walk helpers - #14
Merged
Merged
Conversation
Contributor
PR Diff Line Count
|
||||||||||||||||||||||||||||||||||||
Contributor
|
Size Change: 0 B Total Size: 1.42 kB ℹ️ View Unchanged
|
The `Object` builtins with the cast a call site would otherwise write by hand, as plain exported functions: a missing import is then a compile error at the call site, where a global installed by a side-effect import fails only at runtime. Mirrors TaskRankr #443, including #442's narrowing to plain records. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GKtR2Uc6Jx7WzoWjq49SmC
bvandrc
force-pushed
the
feat/typed-object-walks
branch
from
September 25, 2026 07:59
73d24d5 to
dc2a8f0
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GKtR2Uc6Jx7WzoWjq49SmC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Blake · project thread
Before: only the builtin
Object.keys/entries/fromEntries, so a typed walk needs a hand-written cast.After:
typedKeys,typedEntries, andtypedFromEntries, the plain-function helpers from bvandrc/TaskRankr#443, are exported fromsrc/utils/index.ts.How:
typedKeysandtypedEntriestake plain records only, so an array is refused rather than mistyped. No code here casts a walk yet, so nothing calls them and they stay out of the bundle. type-fest was already a peer dependency.CLAUDE.mddocuments them.🤖 Generated with Claude Code
https://claude.ai/code/session_01GKtR2Uc6Jx7WzoWjq49SmC