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
I just noticed that if you create a custom Error, the inherited properties message, name and stack are reported by TypeDoc as being static while the TypeScript compiler correctly consider them as instance properties.
classCustomErrorextendsError{}
The text was updated successfully, but these errors were encountered:
I've confirmed that TypeDoc is handling this differently than TypeScript.
functionuseError(){CustomError.stack;// [ts] Property 'stack' does not exist on type 'typeof CustomError'. leterrorInst=newCustomError();errorInst.stack;// ok}
Hi!
I just noticed that if you create a custom
Error
, the inherited propertiesmessage
,name
andstack
are reported by TypeDoc as beingstatic
while the TypeScript compiler correctly consider them as instance properties.The text was updated successfully, but these errors were encountered: