@octokit/plugin-rest-endpoint-methods
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -1166,3 +1166,3 @@ 'use strict'; | ||
const VERSION = "3.6.0"; | ||
const VERSION = "3.7.0"; | ||
@@ -1169,0 +1169,0 @@ function endpointsToMethods(octokit, endpointsMap) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.6.0"; | ||
export const VERSION = "3.7.0"; |
import { Octokit } from "@octokit/core"; | ||
import { EndpointsDefaultsAndDecorations } from "./types"; | ||
import { RestEndpointMethods } from "./generated/types"; | ||
import { RestEndpointMethods } from "./generated/method-types"; | ||
export declare function endpointsToMethods(octokit: Octokit, endpointsMap: EndpointsDefaultsAndDecorations): RestEndpointMethods; |
import { Octokit } from "@octokit/core"; | ||
export { RestEndpointMethodTypes } from "./generated/parameters-and-response-types"; | ||
import { Api } from "./types"; | ||
@@ -3,0 +4,0 @@ /** |
import { Route, RequestParameters } from "@octokit/types"; | ||
import { RestEndpointMethods } from "./generated/types"; | ||
import { RestEndpointMethods } from "./generated/method-types"; | ||
export declare type Api = RestEndpointMethods; | ||
@@ -4,0 +4,0 @@ export declare type EndpointDecorations = { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.6.0"; | ||
export declare const VERSION = "3.7.0"; |
@@ -1293,3 +1293,3 @@ const Endpoints = { | ||
const VERSION = "3.6.0"; | ||
const VERSION = "3.7.0"; | ||
@@ -1296,0 +1296,0 @@ function endpointsToMethods(octokit, endpointsMap) { |
{ | ||
"name": "@octokit/plugin-rest-endpoint-methods", | ||
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "files": [ | ||
"dependencies": { | ||
"@octokit/types": "^2.0.1", | ||
"@octokit/types": "^2.11.1", | ||
"deprecation": "^2.3.1" | ||
@@ -23,0 +23,0 @@ }, |
@@ -54,2 +54,15 @@ # plugin-rest-endpoint-methods.js | ||
## TypeScript | ||
Parameter and response types for all endpoint methods exported as `{ RestEndpointMethodTypes }`. | ||
Example | ||
```ts | ||
import { RestEndpointMethodTypes } from "@octokit/rest-endpoint-methods"; | ||
type UpdateLabelParameters = RestEndpointMethodTypes["issues"]["updateLabel"]["parameters"]; | ||
type UpdateLabelResponse = RestEndpointMethodTypes["issues"]["updateLabel"]["response"]; | ||
``` | ||
## Contributing | ||
@@ -56,0 +69,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
21
74
956097
12306
1
Updated@octokit/types@^2.11.1