Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
STRML
on May 9, 2023
|
parent
|
context
|
favorite
| on:
Why Object.keys doesn't return (keyof T)[]
Flowtype works like this out of the box. In my opinion, it's a much better default.
planede
on May 9, 2023
[–]
Huh, nice! Looking at the documentation[1], I assume this is the difference between "exact object types" and "inexact object types". I though about bringing this up for Python TypedDict, so I'm glad there is an actual precedent.
https://flow.org/en/docs/types/objects/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: