UNPKG

573 BTypeScriptView Raw
1/**
2 * Counts the number of arguments for a given function. This algorithm isn't tested for all cases
3 * (check in the spec file), so use it carefully, since it relies on getting the function as a string.
4 * Note this also counts parameters with default initializers (as opposed to checking `function.length`)
5 * @param fn The function to get the number of arguments
6 * @returns the number of arguments in the function's signature
7 */
8export declare function getNumberOfArguments(fn: Function): number | undefined;
9//# sourceMappingURL=get-number-of-arguments.util.d.ts.map
\No newline at end of file