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
In the code is seems that we could do without "static" but when trying the compiler argues that the constructor is not implemented which is quite strange.
TS2420: Class 'CreateTask' incorrectly implements interface 'ActionDef<any, any>'.
Type 'CreateTask' provides no match for the signature 'new (...args: any[]): any'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the code is seems that we could do without "static" but when trying the compiler argues that the constructor is not implemented which is quite strange.
Is this a wanted design constraint ?
this code will raise :
TS2420: Class 'CreateTask' incorrectly implements interface 'ActionDef<any, any>'.
Type 'CreateTask' provides no match for the signature 'new (...args: any[]): any'.
Beta Was this translation helpful? Give feedback.
All reactions