@octokit/types
Advanced tools
Comparing version 2.8.0-beta.1 to 2.8.0-beta.2
{ | ||
"name": "@octokit/types", | ||
"version": "2.8.0-beta.1", | ||
"version": "2.8.0-beta.2", | ||
"publishConfig": { | ||
@@ -33,2 +33,3 @@ "access": "public" | ||
"devDependencies": { | ||
"@gimenete/type-writer": "^0.1.5", | ||
"@octokit/graphql": "^4.2.2", | ||
@@ -35,0 +36,0 @@ "handlebars": "^4.7.6", |
@@ -7,2 +7,4 @@ import { EndpointInterface } from "./EndpointInterface"; | ||
import { Endpoints } from "./generated/Endpoints"; | ||
export interface RequestInterface { | ||
@@ -22,5 +24,10 @@ /** | ||
*/ | ||
<T = any>(route: Route, parameters?: RequestParameters): Promise< | ||
OctokitResponse<T> | ||
>; | ||
<R extends Route>( | ||
route: keyof Endpoints | R, | ||
options?: R extends keyof Endpoints | ||
? Endpoints[R][0] & RequestParameters | ||
: RequestParameters | ||
): R extends keyof Endpoints | ||
? Promise<OctokitResponse<Endpoints[R][2]>> | ||
: Promise<OctokitResponse<any>>; | ||
@@ -27,0 +34,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "2.8.0-beta.1"; | ||
export const VERSION = "2.8.0-beta.2"; |
Sorry, the diff of this file is too big to display
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
1023748
39900
13