10 lines
147 B
TypeScript
10 lines
147 B
TypeScript
|
declare class Base {
|
||
|
check<TProp extends this>(prop: TProp): boolean;
|
||
|
}
|
||
|
|
||
|
class Test extends Base {
|
||
|
m() {
|
||
|
this.check(this);
|
||
|
}
|
||
|
}
|