Skip to content

Commit 1c3a8b9

Browse files
fix(deps): update octokit monorepo (major) & enable exactOptioanlPropertyTypes (#289)
* fix(deps): update octokit monorepo * fix type errors * update request-error and core --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]>
1 parent f8e8902 commit 1c3a8b9

File tree

3 files changed

+50
-49
lines changed

3 files changed

+50
-49
lines changed

package-lock.json

Lines changed: 43 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"author": "Gregor Martynus (https://dev.to/gr2m)",
2323
"license": "MIT",
2424
"dependencies": {
25-
"@octokit/request-error": "^6.1.7",
26-
"@octokit/types": "^13.8.0"
25+
"@octokit/request-error": "^6.1.8",
26+
"@octokit/types": "^14.0.0"
2727
},
2828
"devDependencies": {
29-
"@octokit/core": "^6.1.4",
30-
"@octokit/tsconfig": "^3.0.0",
29+
"@octokit/core": "^6.1.5",
30+
"@octokit/tsconfig": "^4.0.0",
3131
"@types/node": "^22.0.0",
3232
"@vitest/coverage-v8": "^3.0.0",
3333
"@vitest/ui": "^3.0.0",

src/get-file-content.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ type Options = {
66
owner: string;
77
repo: string;
88
path: string;
9-
branch?: string;
9+
branch?: string | undefined;
1010
};
1111

1212
type GetContentsParameters = {
1313
owner: string;
1414
repo: string;
1515
path: string;
16-
ref?: string;
16+
ref?: string | undefined;
1717
};
1818

1919
type Result = {
@@ -53,6 +53,7 @@ export async function getFileContents(
5353
const requestOptions = octokit.request.endpoint(route, getContentsParameters);
5454

5555
const { data } = await octokit
56+
// @ts-expect-error This type comes from @octokit/openapi-types, not much we can do to fix it
5657
.request(route, getContentsParameters)
5758
.catch((error: RequestError) => {
5859
/* v8 ignore next */

0 commit comments

Comments
 (0)