mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
772 B
Plaintext
14 lines
772 B
Plaintext
emitSkipsThisWithRestParameter.ts(3,31): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[base: any, ...args: any[]]'.
|
|
Source provides no match for required element at position 0 in target.
|
|
|
|
|
|
==== emitSkipsThisWithRestParameter.ts (1 errors) ====
|
|
function rebase(fn: (base: any, ...args: any[]) => any): (...args: any[]) => any {
|
|
return function(this: any, ...args: any[]) {
|
|
return fn.apply(this, [ this ].concat(args));
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[base: any, ...args: any[]]'.
|
|
!!! error TS2345: Source provides no match for required element at position 0 in target.
|
|
};
|
|
}
|
|
|