Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit-next/types

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit-next/types - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc