Skip to content

[BUG]: ExtractParameters<T> can return never #554

@wolfy1339

Description

@wolfy1339

What happened?

When updating @octokit/plugin-paginate-rest, the build process was giving errors for paths

Versions

@octokit/types v9.3.0

Relevant log output

No overload matches this call.
  Overload 1 of 9, '(route: "GET /orgs/{org}/repos", parameters: never, mapFn: MapFunction<OctokitResponse<{ id: number; node_id: string; name: string; full_name: string; owner: { name?: string | null | undefined; email?: string | null | undefined; ... 18 more ...; starred_at?: string | undefined; }; ... 81 more ...; security_and_analysis?: { ...; } | ... 1 more ... | undefined; }[], 200>, any>): Promise<...>', gave the following error.
    Argument of type '{ org: string; per_page: number; }' is not assignable to parameter of type 'never'.
  Overload 2 of 9, '(request: RequestInterface<object>, parameters: string, mapFn: MapFunction<NormalizeResponse<OctokitResponse<any>>, any>): Promise<...>', gave the following error.
    Argument of type 'string' is not assignable to parameter of type 'RequestInterface<object>'.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions