Skip to content

Commit 19847b4

Browse files
fix: add explicit undefined for optional types (#136)
* chore(deps): update dependency @octokit/tsconfig to v4 * fix add explicit undefined --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]>
1 parent 01dbb71 commit 19847b4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"author": "Gregor Martynus (https://twitter.com/gr2m)",
2323
"license": "ISC",
2424
"devDependencies": {
25-
"@octokit/tsconfig": "^3.0.0",
25+
"@octokit/tsconfig": "^4.0.0",
2626
"@types/node": "^22.15.29",
2727
"@vitest/coverage-v8": "^3.0.0",
2828
"esbuild": "^0.25.0",

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { existsSync, readdirSync, readFileSync } from "node:fs";
33
import { VERSION } from "./version.js";
44

55
type Options = {
6-
filepath?: string;
6+
filepath?: string | undefined;
77
env?: {
8-
PRIVATE_KEY?: string;
9-
PRIVATE_KEY_PATH?: string;
8+
PRIVATE_KEY?: string | undefined;
9+
PRIVATE_KEY_PATH?: string | undefined;
1010
[key: string]: string | undefined;
1111
};
12-
cwd?: string;
12+
cwd?: string | undefined;
1313
};
1414

1515
const pkcs1Begin = "-----BEGIN RSA PRIVATE KEY-----";

0 commit comments

Comments
 (0)