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 wanted to inherit Koa in TypeScript to add a few properties and methods to Context because adding by using prototype does not support the auto-complete for the editor. But an error occurred when calling super.
I wanted to inherit Koa in TypeScript to add a few properties and methods to
Context
because adding by usingprototype
does not support the auto-complete for the editor. But an error occurred when callingsuper
.Here's my code:
Here's the error:
TypeError: Class constructor Application cannot be invoked without 'new'
I tried just import
Application
from Koa, but the same error occurred.The text was updated successfully, but these errors were encountered: