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
unknown
any
We currently use any a lot like. Eg.:
This currently makes stuff like this possible without error:
When the user passes an array with "any" we could also convert the outcome to "unknown" instead like so:
Which will result in throwing errors because the type was converted from any to unknown:
As long as the array type is not any[] it will keep the array type as is:
any[]
@laquasicinque thoughts?
The text was updated successfully, but these errors were encountered:
the proposal comes from:
Sorry, something went wrong.
On a related note, you may wish to define an object like:
// like in TS library files Record<keyof any, unknown> // or verbosely without the any Record<string | number | symbol, unknown>
will land in v5
42cadb4
No branches or pull requests
CURRENTLY
We currently use
any
a lot like. Eg.:This currently makes stuff like this possible without error:
PROPOSAL
When the user passes an array with "any" we could also convert the outcome to "unknown" instead like so:
Which will result in throwing errors because the type was converted from
any
tounknown
:As long as the array type is not
any[]
it will keep the array type as is:@laquasicinque thoughts?
The text was updated successfully, but these errors were encountered: