2.8.0 • Published 1 month ago

@octokit-next/types-rest-api-github.ae-compatible v2.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@octokit-next/types-rest-api-github.ae-compatible

Types for GITHUB.AE (compatible) REST API requests and responses

🚫⚠️ This package is part of an experimental Octokit SDK for testing purpose only - DO NOT USE

learn more

The goal for this package is to enable developers to build code that will work in both environments: github.com and GITHUB.AE. Only endpoints and properties that exist in both have types by default.

The version can be overwritten on a per-request basis as needed.

Usage

const octokit = new Octokit({
  version: "github.ae-compatible",
});
const response = await octokit.request("GET /");

The routes suggested for octokit.request(route) are only the ones that exist for version: "github.com" and have no overrides for version: "github.ae". The same is true for response.headers.

To override the version specified in the constructor it can be set using the request.version option

const ghesOnlyResponse = await octokit.request("GET /admins/users", {
  request: {
    version: "github.ae",
  },
});
2.8.0

1 month ago

2.7.1

10 months ago

2.7.0

1 year ago

2.6.1

1 year ago

2.3.0

2 years ago

2.5.0

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.3.1

2 years ago

2.5.2

2 years ago

2.6.0

2 years ago

2.5.1

2 years ago

1.15.6

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.15.4

2 years ago

1.15.3

2 years ago

1.15.2

2 years ago

1.15.1

2 years ago

1.15.5

2 years ago

1.15.0

3 years ago

1.14.0

3 years ago

1.13.2

3 years ago

1.13.1

3 years ago

1.13.0

3 years ago