Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split "Other Types" into "Top Types" and "Bottom Types" #6189

Closed
bennycode opened this issue Jul 19, 2024 · 3 comments
Closed

Split "Other Types" into "Top Types" and "Bottom Types" #6189

bennycode opened this issue Jul 19, 2024 · 3 comments
Labels
topic-change Missing or deprecated topics in roadmap typescript Roadmap: typescript

Comments

@bennycode
Copy link
Contributor

Roadmap URL

https://roadmap.sh/typescript

Suggestions

At the moment, any, object, unknown and never are part of a group called "Other Types".

According to the TypeScript documentation, unknown and any are actually "Top Types": https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-type

The never type can be classified as "Bottom Type": https://en.wikipedia.org/wiki/Bottom_type#In_programming_languages

@bennycode bennycode added the topic-change Missing or deprecated topics in roadmap label Jul 19, 2024
@github-actions github-actions bot added the typescript Roadmap: typescript label Jul 19, 2024
@loralridz
Copy link

@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

@bennycode
Copy link
Contributor Author

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.

Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#indexed_collections_arrays_and_typed_arrays

Or was there a reason that "object" has been seperated from the "Object Types"?

@kamranahmedse
Copy link
Owner

This has been fixed. Thank you for reporting @bennycode!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-change Missing or deprecated topics in roadmap typescript Roadmap: typescript
Projects
None yet
Development

No branches or pull requests

3 participants