Closed mjambon closed 3 years ago
The following should be supported:
try {} catch (e: unknown) {}
unknown and any are the only types that are allowed here according to the error message we're getting in the typescript playground when trying something else. Any type alias that resolves to unknown or any is also accepted:
unknown
any
type thing = unknown try {} catch (e: thing) {}
The following should be supported:
unknown
andany
are the only types that are allowed here according to the error message we're getting in the typescript playground when trying something else. Any type alias that resolves tounknown
orany
is also accepted: