Skip to content

Commit b816756

Browse files
authored
Merge pull request #121 from operate-first/renovate/typescript-5.x
chore(deps): update dependency typescript to v5
2 parents bfdf642 + 6ade978 commit b816756

File tree

4 files changed

+17
-307
lines changed

4 files changed

+17
-307
lines changed

package-lock.json

Lines changed: 8 additions & 8 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
@@ -23,7 +23,7 @@
2323
"prettier": "2.8.5",
2424
"ts-jest": "29.0.5",
2525
"ts-node": "10.9.1",
26-
"typescript": "4.9.5"
26+
"typescript": "5.0.2"
2727
},
2828
"workspaces": [
2929
"packages/*"

packages/probot-issue-form/parser.test.ts

Lines changed: 0 additions & 293 deletions
This file was deleted.

packages/probot-kubernetes/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs';
22
import * as k8s from '@kubernetes/client-node';
33
import { InstallationAccessTokenAuthentication } from '@octokit/auth-app';
44
import dotenv from 'dotenv';
5-
import { Probot } from 'probot';
5+
import { Probot, Context } from 'probot';
66

77
if (process.env.NODE_ENV !== 'production') {
88
dotenv.config();
@@ -35,11 +35,14 @@ export const getNamespace = () => k8sNamespace;
3535
export const APIS = k8s;
3636

3737
export const useK8sTokenStore = (app: Probot) => {
38-
app.on('installation.created', async (context) => {
39-
await createTokenSecret(context);
40-
});
38+
app.on(
39+
'installation.created',
40+
async (context: Context<'installation.created'>) => {
41+
await createTokenSecret(context);
42+
}
43+
);
4144

42-
app.on('installation.deleted', async (context) => {
45+
app.on('installation.deleted', async (context: Context<'installation.deleted'>) => {
4346
await deleteTokenSecret(context);
4447
});
4548

0 commit comments

Comments
 (0)