import type {FunctionParameters} from './function-parameters.d.ts'; import type {Overloads} from './overloads.d.ts'; /** Extract the parameter types of all overloads as a union. This is the overload-aware counterpart to the built-in `Parameters` utility type, which only extracts from the last overload. @example ``` import type {OverloadParameters} from 'type-fest'; declare function request(url: string): Promise; declare function request(url: string, options: {json: true}): Promise; type AllParameters = OverloadParameters; //=> [url: string] | [url: string, options: {json: true}] ``` Known limitations are the same as {@link Overloads}. @category Function */ export type OverloadParameters any> = FunctionParameters[number]>; export {};