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

fix: update aegir and fix types#111

Merged
hugomrdias merged 3 commits intomasterfrom
fix/update-types
Jan 13, 2021
Merged

fix: update aegir and fix types#111
hugomrdias merged 3 commits intomasterfrom
fix/update-types

Conversation

@hugomrdias
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
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


expect(
mh.coerceCode(names[name])
mh.coerceCode(/** @type {HashCode} */(names[/** @type {HashName} */(name)]))
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@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.

3 participants