overloaded-parameters.d.ts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. export declare type OverloadedParameters<T> = T extends {
  2. (...args: infer A1): any;
  3. (...args: infer A2): any;
  4. (...args: infer A3): any;
  5. (...args: infer A4): any;
  6. (...args: infer A5): any;
  7. (...args: infer A6): any;
  8. (...args: infer A7): any;
  9. (...args: infer A8): any;
  10. (...args: infer A9): any;
  11. (...args: infer A10): any;
  12. (...args: infer A11): any;
  13. (...args: infer A12): any;
  14. (...args: infer A13): any;
  15. (...args: infer A14): any;
  16. (...args: infer A15): any;
  17. (...args: infer A16): any;
  18. (...args: infer A17): any;
  19. (...args: infer A18): any;
  20. (...args: infer A19): any;
  21. (...args: infer A20): any;
  22. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 | A18 | A19 | A20 : T extends {
  23. (...args: infer A1): any;
  24. (...args: infer A2): any;
  25. (...args: infer A3): any;
  26. (...args: infer A4): any;
  27. (...args: infer A5): any;
  28. (...args: infer A6): any;
  29. (...args: infer A7): any;
  30. (...args: infer A8): any;
  31. (...args: infer A9): any;
  32. (...args: infer A10): any;
  33. (...args: infer A11): any;
  34. (...args: infer A12): any;
  35. (...args: infer A13): any;
  36. (...args: infer A14): any;
  37. (...args: infer A15): any;
  38. (...args: infer A16): any;
  39. (...args: infer A17): any;
  40. (...args: infer A18): any;
  41. (...args: infer A19): any;
  42. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 | A18 | A19 : T extends {
  43. (...args: infer A1): any;
  44. (...args: infer A2): any;
  45. (...args: infer A3): any;
  46. (...args: infer A4): any;
  47. (...args: infer A5): any;
  48. (...args: infer A6): any;
  49. (...args: infer A7): any;
  50. (...args: infer A8): any;
  51. (...args: infer A9): any;
  52. (...args: infer A10): any;
  53. (...args: infer A11): any;
  54. (...args: infer A12): any;
  55. (...args: infer A13): any;
  56. (...args: infer A14): any;
  57. (...args: infer A15): any;
  58. (...args: infer A16): any;
  59. (...args: infer A17): any;
  60. (...args: infer A18): any;
  61. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 | A18 : T extends {
  62. (...args: infer A1): any;
  63. (...args: infer A2): any;
  64. (...args: infer A3): any;
  65. (...args: infer A4): any;
  66. (...args: infer A5): any;
  67. (...args: infer A6): any;
  68. (...args: infer A7): any;
  69. (...args: infer A8): any;
  70. (...args: infer A9): any;
  71. (...args: infer A10): any;
  72. (...args: infer A11): any;
  73. (...args: infer A12): any;
  74. (...args: infer A13): any;
  75. (...args: infer A14): any;
  76. (...args: infer A15): any;
  77. (...args: infer A16): any;
  78. (...args: infer A17): any;
  79. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 : T extends {
  80. (...args: infer A1): any;
  81. (...args: infer A2): any;
  82. (...args: infer A3): any;
  83. (...args: infer A4): any;
  84. (...args: infer A5): any;
  85. (...args: infer A6): any;
  86. (...args: infer A7): any;
  87. (...args: infer A8): any;
  88. (...args: infer A9): any;
  89. (...args: infer A10): any;
  90. (...args: infer A11): any;
  91. (...args: infer A12): any;
  92. (...args: infer A13): any;
  93. (...args: infer A14): any;
  94. (...args: infer A15): any;
  95. (...args: infer A16): any;
  96. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 : T extends {
  97. (...args: infer A1): any;
  98. (...args: infer A2): any;
  99. (...args: infer A3): any;
  100. (...args: infer A4): any;
  101. (...args: infer A5): any;
  102. (...args: infer A6): any;
  103. (...args: infer A7): any;
  104. (...args: infer A8): any;
  105. (...args: infer A9): any;
  106. (...args: infer A10): any;
  107. (...args: infer A11): any;
  108. (...args: infer A12): any;
  109. (...args: infer A13): any;
  110. (...args: infer A14): any;
  111. (...args: infer A15): any;
  112. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 : T extends {
  113. (...args: infer A1): any;
  114. (...args: infer A2): any;
  115. (...args: infer A3): any;
  116. (...args: infer A4): any;
  117. (...args: infer A5): any;
  118. (...args: infer A6): any;
  119. (...args: infer A7): any;
  120. (...args: infer A8): any;
  121. (...args: infer A9): any;
  122. (...args: infer A10): any;
  123. (...args: infer A11): any;
  124. (...args: infer A12): any;
  125. (...args: infer A13): any;
  126. (...args: infer A14): any;
  127. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 : T extends {
  128. (...args: infer A1): any;
  129. (...args: infer A2): any;
  130. (...args: infer A3): any;
  131. (...args: infer A4): any;
  132. (...args: infer A5): any;
  133. (...args: infer A6): any;
  134. (...args: infer A7): any;
  135. (...args: infer A8): any;
  136. (...args: infer A9): any;
  137. (...args: infer A10): any;
  138. (...args: infer A11): any;
  139. (...args: infer A12): any;
  140. (...args: infer A13): any;
  141. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 : T extends {
  142. (...args: infer A1): any;
  143. (...args: infer A2): any;
  144. (...args: infer A3): any;
  145. (...args: infer A4): any;
  146. (...args: infer A5): any;
  147. (...args: infer A6): any;
  148. (...args: infer A7): any;
  149. (...args: infer A8): any;
  150. (...args: infer A9): any;
  151. (...args: infer A10): any;
  152. (...args: infer A11): any;
  153. (...args: infer A12): any;
  154. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 : T extends {
  155. (...args: infer A1): any;
  156. (...args: infer A2): any;
  157. (...args: infer A3): any;
  158. (...args: infer A4): any;
  159. (...args: infer A5): any;
  160. (...args: infer A6): any;
  161. (...args: infer A7): any;
  162. (...args: infer A8): any;
  163. (...args: infer A9): any;
  164. (...args: infer A10): any;
  165. (...args: infer A11): any;
  166. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 : T extends {
  167. (...args: infer A1): any;
  168. (...args: infer A2): any;
  169. (...args: infer A3): any;
  170. (...args: infer A4): any;
  171. (...args: infer A5): any;
  172. (...args: infer A6): any;
  173. (...args: infer A7): any;
  174. (...args: infer A8): any;
  175. (...args: infer A9): any;
  176. (...args: infer A10): any;
  177. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 : T extends {
  178. (...args: infer A1): any;
  179. (...args: infer A2): any;
  180. (...args: infer A3): any;
  181. (...args: infer A4): any;
  182. (...args: infer A5): any;
  183. (...args: infer A6): any;
  184. (...args: infer A7): any;
  185. (...args: infer A8): any;
  186. (...args: infer A9): any;
  187. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 : T extends {
  188. (...args: infer A1): any;
  189. (...args: infer A2): any;
  190. (...args: infer A3): any;
  191. (...args: infer A4): any;
  192. (...args: infer A5): any;
  193. (...args: infer A6): any;
  194. (...args: infer A7): any;
  195. (...args: infer A8): any;
  196. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 : T extends {
  197. (...args: infer A1): any;
  198. (...args: infer A2): any;
  199. (...args: infer A3): any;
  200. (...args: infer A4): any;
  201. (...args: infer A5): any;
  202. (...args: infer A6): any;
  203. (...args: infer A7): any;
  204. } ? A1 | A2 | A3 | A4 | A5 | A6 | A7 : T extends {
  205. (...args: infer A1): any;
  206. (...args: infer A2): any;
  207. (...args: infer A3): any;
  208. (...args: infer A4): any;
  209. (...args: infer A5): any;
  210. (...args: infer A6): any;
  211. } ? A1 | A2 | A3 | A4 | A5 | A6 : T extends {
  212. (...args: infer A1): any;
  213. (...args: infer A2): any;
  214. (...args: infer A3): any;
  215. (...args: infer A4): any;
  216. (...args: infer A5): any;
  217. } ? A1 | A2 | A3 | A4 | A5 : T extends {
  218. (...args: infer A1): any;
  219. (...args: infer A2): any;
  220. (...args: infer A3): any;
  221. (...args: infer A4): any;
  222. } ? A1 | A2 | A3 | A4 : T extends {
  223. (...args: infer A1): any;
  224. (...args: infer A2): any;
  225. (...args: infer A3): any;
  226. } ? A1 | A2 | A3 : T extends {
  227. (...args: infer A1): any;
  228. (...args: infer A2): any;
  229. } ? A1 | A2 : T extends {
  230. (...args: infer A1): any;
  231. } ? A1 : any;