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 [email protected], there is a type incompatible with interface declaration merge
// application.tsclassAppextendsPreon.Application{test: string}// typings/index.d.tsdeclare module 'preon'{interfaceContext{app: Application}}// controller/system.tsexportdefaultclassSystemextendsPreon.Controller{test(ctx: Preon.Context){ctx.app.test// TS2339: Property 'test' does not exist on type 'Application'.}}
Because the extended class Application is not the same as the original one
in [email protected], there is a type incompatible with interface declaration merge
Because the extended class Application is not the same as the original one
For more detail:
microsoft/TypeScript#36696
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#intersections-reduced-by-discriminant-properties
The text was updated successfully, but these errors were encountered: