You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I understand, this library uses an automated system to read the specs and extract the types from them. Occasionally the spec does not specify any type and so this library defaults to any (for instance see #1237 for structuredClone).
I'd like to suggest to modify the tool to use unknown instead by default (and never use any), to err on the side of type safety.
The text was updated successfully, but these errors were encountered:
Using unknown would be indeed more strict, but doing so also will break many many existing codes, so I'm not sure we can do this. This at least requires some kind of conditional compiling.
From what I understand, this library uses an automated system to read the specs and extract the types from them. Occasionally the spec does not specify any type and so this library defaults to
any
(for instance see #1237 forstructuredClone
).I'd like to suggest to modify the tool to use
unknown
instead by default (and never useany
), to err on the side of type safety.The text was updated successfully, but these errors were encountered: