Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

fix: update aegir and fix types #111

Merged
merged 3 commits into from
Jan 13, 2021
Merged

fix: update aegir and fix types #111

merged 3 commits into from
Jan 13, 2021

Conversation

hugomrdias
Copy link
Member

No description provided.

Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly just type-related questions above for my own education, and one dead-code block

src/index.js Show resolved Hide resolved
test/index.spec.js Outdated Show resolved Hide resolved
)

expect(
mh.coerceCode(names[name])
mh.coerceCode(/** @type {HashCode} */(names[/** @type {HashName} */(name)]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why aren't both of these things being inherited naturally from the typedef for name since there's a clear path to name and therefore names[name]?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because TS is dumb and name in for in has string type. @Gozala can we improve this ?

Copy link
Contributor

@Gozala Gozala Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test/index.spec.js Outdated Show resolved Hide resolved
@hugomrdias hugomrdias merged commit 666c4ad into master Jan 13, 2021
@hugomrdias hugomrdias deleted the fix/update-types branch January 13, 2021 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants