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
// @noEmit: true// @allowJs: true// @checkJs: true// @Filename: a.js// from enhanced-resolvefunctionT(){this.plugins={}}T.prototype.plugin=function(name,f){this.plugins[name]=f}functionR(fs){T.call(this)this.fs=fs}R.prototype=Object.create(T.prototype)// should create an extends: R extends TR.prototype.resolve=functionresolve(name){this.plugin(name,p=>p)}
Expected behavior: R behaves like T is its base class: this.plugin inside resolve should be legal.
Actual behavior:
Property 'plugin' does not exist on type '{ fs: any, resolve: (name: any) => void }'