Open
Description
Since the new unknown
type was added, it makes sense to replace a lot (if not all) usage of any
in the definition files with unknown
. For example:
Array.isArray(a: unknown): a is unknown[];
JSON.parse(a: string): unknown;
However, this change will cause many errors in projects currently using the fact that the returned types are not type-checked. This means that the change could be controversial.