Skip to content

docs(faq): Mention TypeScript 3’s unknown type #1290

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/org.eclipse.n4js.doc/src/faq/comparison-typescript.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ h| `any+` h| yes h| no |
h| TypeScript h| `any` h| yes h| yes | • footnote:[In TypeScript, implicit usage of `any` can be disallowed by means of a compiler flag.]
|===

TypeScript 3 introduced the `unknown` type which behaves like N4JS's `any` type, with the exception that it isn't currently being used by default and has to be declared explicitly.

=== Type Errors Are Show-Stoppers in N4JS

N4JS has two general levels of issues reported by the compiler: *warning* and *error*.
Expand Down