@octokit/types 9.2.3 → 10.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +1 -1
- package/dist-src/VERSION.js +1 -1
- package/dist-types/EndpointDefaults.d.ts +1 -1
- package/dist-types/RequestParameters.d.ts +1 -1
- package/dist-types/VERSION.d.ts +1 -1
- package/dist-types/generated/Endpoints.d.ts +2 -7
- package/dist-web/index.js +1 -1
- package/package.json +1 -1
package/dist-node/index.js
CHANGED
package/dist-src/VERSION.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "
|
|
1
|
+
export const VERSION = "10.0.0-beta.1";
|
|
@@ -24,7 +24,7 @@ export type RequestParameters = {
|
|
|
24
24
|
*/
|
|
25
25
|
format?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Custom media type names of {@link https://
|
|
27
|
+
* Custom media type names of {@link https://docs.github.com/en/graphql/overview/schema-previews|GraphQL API Previews} without the `-preview` suffix.
|
|
28
28
|
* Example for single preview: `['squirrel-girl']`.
|
|
29
29
|
* Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`.
|
|
30
30
|
*/
|
package/dist-types/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "10.0.0-beta.1";
|
|
@@ -16,13 +16,8 @@ type ExtractRequestBody<T> = "requestBody" extends keyof T ? "content" extends k
|
|
|
16
16
|
}[keyof T["requestBody"]];
|
|
17
17
|
} : {};
|
|
18
18
|
type ToOctokitParameters<T> = ExtractParameters<T> & ExtractRequestBody<Required<T>>;
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
previews: [T, ...string[]];
|
|
22
|
-
};
|
|
23
|
-
} : {};
|
|
24
|
-
type Operation<Url extends keyof paths, Method extends keyof paths[Url], preview = unknown> = {
|
|
25
|
-
parameters: ToOctokitParameters<paths[Url][Method]> & RequiredPreview<preview>;
|
|
19
|
+
type Operation<Url extends keyof paths, Method extends keyof paths[Url]> = {
|
|
20
|
+
parameters: ToOctokitParameters<paths[Url][Method]>;
|
|
26
21
|
request: {
|
|
27
22
|
method: Method extends keyof MethodsMap ? MethodsMap[Method] : never;
|
|
28
23
|
url: Url;
|
package/dist-web/index.js
CHANGED