The static-side shape the try helpers need from a TypedError class.
Deliberately excludes the construct signature: no subclass is assignable to
typeof TypedError — even one that only inherits the constructor — because
the conditional info tuple, re-instantiated with the subclass's narrowed
code parameter, cannot be related to the base's unresolved form.
The static-side shape the
tryhelpers need from aTypedErrorclass. Deliberately excludes the construct signature: no subclass is assignable totypeof TypedError— even one that only inherits the constructor — because the conditionalinfotuple, re-instantiated with the subclass's narrowed code parameter, cannot be related to the base's unresolved form.