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
/* foo.ts*/exportclassFoo{name: string;}/*bar.ts*/import{Foo}from'./foo'declare module './foo'{interfaceFoo{bar(): string;}}Foo.prototype.bar=function(){returnthis.name;// this's type is any}
Expected behavior:
The type of this in augment function bar is any. Actual behavior:
The type of this is Foo.
The text was updated successfully, but these errors were encountered:
TypeScript Version:
1.8.7
Code
Expected behavior:
The type of
this
in augment functionbar
isany
.Actual behavior:
The type of
this
isFoo
.The text was updated successfully, but these errors were encountered: