(this: any)
| 111 | } = function(arity, body) { |
| 112 | if (typeof arity === "function") { |
| 113 | return function(this: any) { |
| 114 | return arity(arguments) |
| 115 | ? body.apply(this, arguments as any) |
| 116 | : ((self: any) => body(self, ...arguments)) as any |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | switch (arity) { |