@octokit/types 9.3.1 → 10.0.0-beta.2

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const VERSION = "9.3.1";
5
+ const VERSION = "10.0.0-beta.2";
6
6
 
7
7
  exports.VERSION = VERSION;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export const VERSION = "9.3.1";
1
+ export const VERSION = "10.0.0-beta.2";
@@ -16,6 +16,6 @@ export type EndpointDefaults = RequestParameters & {
16
16
  };
17
17
  mediaType: {
18
18
  format: string;
19
- previews: string[];
19
+ previews?: string[];
20
20
  };
21
21
  };
@@ -24,7 +24,7 @@ export type RequestParameters = {
24
24
  */
25
25
  format?: string;
26
26
  /**
27
- * Custom media type names of {@link https://developer.github.com/v3/media/|API Previews} without the `-preview` suffix.
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
  */
@@ -1 +1 @@
1
- export declare const VERSION = "9.3.1";
1
+ export declare const VERSION = "10.0.0-beta.2";
@@ -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 RequiredPreview<T> = T extends string ? {
20
- mediaType: {
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
@@ -1,4 +1,4 @@
1
- const VERSION = "9.3.1";
1
+ const VERSION = "10.0.0-beta.2";
2
2
 
3
3
  export { VERSION };
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@octokit/types",
3
3
  "description": "Shared TypeScript definitions for Octokit projects",
4
- "version": "9.3.1",
4
+ "version": "10.0.0-beta.2",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist-*/**",