Address more comments and remove temp test.
I added the temp test by mistake.
This commit is contained in:
parent
41bb446865
commit
a014edf55a
4
src/lib/core.d.ts
vendored
4
src/lib/core.d.ts
vendored
|
@ -215,7 +215,7 @@ interface Function {
|
|||
* @param thisArg The object to be used as the this object.
|
||||
* @param argArray A set of arguments to be passed to the function.
|
||||
*/
|
||||
apply<T,U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, argArray?: any): U;
|
||||
apply<T, U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, argArray?: any): U;
|
||||
apply(this: Function, thisArg: any, argArray?: any): any;
|
||||
|
||||
/**
|
||||
|
@ -223,7 +223,7 @@ interface Function {
|
|||
* @param thisArg The object to be used as the current object.
|
||||
* @param argArray A list of arguments to be passed to the method.
|
||||
*/
|
||||
call<T,U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, ...argArray: any[]): U;
|
||||
call<T, U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, ...argArray: any[]): U;
|
||||
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
//@strictThis: true
|
||||
interface A { a: number; m(this: this): number }
|
||||
interface B { b: number, m(this: this): number }
|
||||
interface C { c: number; m(): number }
|
||||
let a: A;
|
||||
let ab: A | B;
|
||||
let abc: A | B | C;
|
||||
// ab.m().length;
|
||||
abc.m().length; // should be OK? this: any, right?
|
Loading…
Reference in a new issue