We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can someone please add the definition of the 'unknown' type and clearly describe the purpose of it, and how is differs from the type 'any'.
Sample coding show proper use of 'unknown' as well as the context to use it over 'any' would also be benificial.
The text was updated successfully, but these errors were encountered:
This explanation/distinction is given in the "More on Functions" chapter of the handbook: https://www.typescriptlang.org/docs/handbook/2/functions.html#unknown
Sorry, something went wrong.
No branches or pull requests
Can someone please add the definition of the 'unknown' type and clearly describe the purpose of it, and how is differs from the type 'any'.
Sample coding show proper use of 'unknown' as well as the context to use it over 'any' would also be benificial.
The text was updated successfully, but these errors were encountered: