Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"conventional-changelog-conventionalcommits": "^10.2.0",
"semantic-release": "^25.0.3",
"standard": "^17.1.2",
"typescript": "^6.0.2"
"typescript": "^7.0.2"
},
"release": {
"branches": [
Expand Down
12 changes: 6 additions & 6 deletions types/github-webhook-handler.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default create;
import { EventEmitter } from 'node:events';
export type CreateHandlerOptions = {
path: string;
secret: string;
events?: string | string[] | undefined;
events?: string | string[];
};
export type WebhookEvent = {
/**
Expand All @@ -20,11 +20,11 @@ export type WebhookEvent = {
/**
* - The request protocol
*/
protocol?: string | undefined;
protocol?: string;
/**
* - The request host header
*/
host?: string | undefined;
host?: string;
/**
* - The request URL
*/
Expand All @@ -39,9 +39,9 @@ export type WebhookEvent = {
* @returns {EventEmitter & {(req: import('node:http').IncomingMessage, res: import('node:http').ServerResponse, callback: (err?: Error) => void): void, sign(data: string | Buffer): string, verify(signature: string, data: string | Buffer): boolean}}
*/
declare function create(initOptions: CreateHandlerOptions | CreateHandlerOptions[]): EventEmitter & {
(req: import("node:http").IncomingMessage, res: import("node:http").ServerResponse, callback: (err?: Error) => void): void;
(req: import('node:http').IncomingMessage, res: import('node:http').ServerResponse, callback: (err?: Error) => void): void;
sign(data: string | Buffer): string;
verify(signature: string, data: string | Buffer): boolean;
};
import { EventEmitter } from 'node:events';
export default create;
//# sourceMappingURL=github-webhook-handler.d.ts.map
2 changes: 1 addition & 1 deletion types/github-webhook-handler.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading