Dev UX: auto imports | Dev UX: contextual naming | Perf: tree shaking | Dev UX: namespace/type merging | |
---|---|---|---|---|
namespace import | not yet | yes | maybe | no |
TS namespace | yes | yes | no | yes |
types: namespace import / values: named import | not yet / yes | yes / no | yes | no |
types: TS namespace / values: named import | yes | yes / no | yes | yes |
This comment has been minimized.
This comment has been minimized.
Example of unionize union + TS namespaces (unable to use namespace/type merging): https://github.com/unsplash/unsplash-web/blob/e33084a7c31e1532103b842423ba242dae557fbb/client/uploader/state/FormFile/types.ts#L56-L62 |
This comment has been minimized.
This comment has been minimized.
Final thoughts
Table of contents
Code sample
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
What we want:
checkIsFull
without any context)Type
orEntity
inside the type name)