@nestjs/graphql
Version:
GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.
9 lines • 573 B
TypeScript
/**
* Counts the number of arguments for a given function. This algorithm isn't tested for all cases
* (check in the spec file), so use it carefully, since it relies on getting the function as a string.
* Note this also counts parameters with default initializers (as opposed to checking `function.length`)
* @param fn The function to get the number of arguments
* @returns the number of arguments in the function's signature
*/
export declare function getNumberOfArguments(fn: Function): number | undefined;
//# sourceMappingURL=get-number-of-arguments.util.d.ts.map