fix(typescript): simplify ProbotWebhooks object (#1833)

This commit is contained in:
Victor Scaiceanu 2023-06-14 22:48:11 +02:00 committed by GitHub
parent 6c5840d2df
commit 7b09369f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ export type State = {
baseUrl?: string;
};
export type ProbotWebhooks = Webhooks<Omit<Context, keyof WebhookEvent>>;
type SimplifiedObject = Omit<Context, keyof WebhookEvent>;
export type ProbotWebhooks = Webhooks<SimplifiedObject>;
export type DeprecatedLogger = LogFn & Logger;