You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bennycode Question about this; are we expecting two new blocks( Top Types, Bottom Types) and in the Other Types, we'll only have object. is that right?
If so, can i work on this
Hi @loralridz, it needs indeed two more blocks (Top Types & Bottom Types). The object type can then be put into the "Object Types" box. Array is already listed in "Object Types" and according to MDN arrays are objects so it makes sense to put object into the same category as Array:
Arrays are regular objects for which there is a particular relationship between integer-keyed properties and the length property.
Roadmap URL
https://roadmap.sh/typescript
Suggestions
At the moment,
any
,object
,unknown
andnever
are part of a group called "Other Types".According to the TypeScript documentation,
unknown
andany
are actually "Top Types": https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-typeThe
never
type can be classified as "Bottom Type": https://en.wikipedia.org/wiki/Bottom_type#In_programming_languagesThe text was updated successfully, but these errors were encountered: