@octokit-next/types
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -7,3 +7,3 @@ { | ||
"type": "module", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "Shared TypeScript definitions for upcoming Octokit SDK", | ||
@@ -10,0 +10,0 @@ "types": "./index.d.ts", |
import { Octokit } from "./index.js"; | ||
type EndpointParameters< | ||
TVersion extends keyof Octokit.ApiVersions = "github.com" | ||
> = { request?: Octokit.RequestOptions<TVersion> } & Record<string, unknown>; | ||
type UnknownResponse = { | ||
@@ -36,3 +32,3 @@ /** | ||
* derived from the version passed in `RequestInterface<version>`, which defaults to `"github.com"` | ||
* 3. When an unknown route is passed, any parameters can be passed, and the response is unknown. | ||
* 3. When no endpoint types are imported, then any route with any parameters can be passed in, and the response is unknown. | ||
*/ | ||
@@ -58,3 +54,3 @@ export interface RequestInterface< | ||
): Route extends keyof ResponseByVersionAndRoute[RVersion] | ||
? ResponseByVersionAndRoute[RVersion][Route] | ||
? Promise<ResponseByVersionAndRoute[RVersion][Route]> | ||
: never; | ||
@@ -88,3 +84,3 @@ | ||
): Route extends keyof ResponseByVersionAndRoute[TVersion] | ||
? ResponseByVersionAndRoute[TVersion][Route] | ||
? Promise<ResponseByVersionAndRoute[TVersion][Route]> | ||
: never; | ||
@@ -91,0 +87,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21506
652