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
index.ts(23,14): error TS2420: Class 'Class' incorrectly implements interface 'IClass'.
Types of property 'config' are incompatible.
Type '<T extends IOptions, K extends keyof T>(key: K, value: T[K]) => void' is not assignable to type '<T extends IOptions, K extends keyof T>(key: K, value: T[K]) => void'. Two different types with this name exist, but they are unrelated.
Types of parameters 'key' and 'key' are incompatible.
Type 'K' is not assignable to type '"name"'.
Type 'keyof T' is not assignable to type '"name"'.
TypeScript Version: 2.4.2
Code
Expected behavior:
No Error
Actual behavior: