File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11// remove type imports from http for Deno compatibility
22// see https://github.com/octokit/octokit.js/issues/24#issuecomment-817361886
3- // import { IncomingMessage } from "http";
3+ // import type { IncomingMessage } from "node: http";
44type IncomingMessage = any ;
55
66const WEBHOOK_HEADERS = [
Original file line number Diff line number Diff line change 22import AggregateError from "aggregate-error" ;
33
44// remove type imports from http for Deno compatibility
5- // see https://github.com/octokit/octokit.js/issues/24 #issuecomment-817361886
6- // import { IncomingMessage } from "http";
7- // declare module "http" {
8- // interface IncomingMessage {
9- // body?: WebhookEvent | unknown ;
10- // }
5+ // see https://github.com/octokit/octokit.js/issues/2075 #issuecomment-817361886
6+ // import type { IncomingMessage } from "node: http";
7+ // declare module "node: http" {
8+ // interface IncomingMessage {
9+ // body?: string ;
10+ // }
1111// }
1212type IncomingMessage = any ;
1313
Original file line number Diff line number Diff line change 11// remove type imports from http for Deno compatibility
22// see https://github.com/octokit/octokit.js/issues/2075#issuecomment-817361886
3- // import { IncomingMessage, ServerResponse } from "http";
3+ // import type { IncomingMessage, ServerResponse } from "node: http";
44type IncomingMessage = any ;
55type ServerResponse = any ;
66
Original file line number Diff line number Diff line change 11// remove type imports from http for Deno compatibility
22// see https://github.com/octokit/octokit.js/issues/24#issuecomment-817361886
3- // import { IncomingMessage, ServerResponse } from "http";
3+ // import type { IncomingMessage, ServerResponse } from "node: http";
44type IncomingMessage = any ;
55type ServerResponse = any ;
66
Original file line number Diff line number Diff line change 55 WebhookError ,
66 createNodeMiddleware ,
77} from "../src/index.ts" ;
8- import { createServer } from "http" ;
8+ import { createServer } from "node: http" ;
99import type {
1010 HandlerFunction ,
1111 RemoveHandlerFunction ,
You can’t perform that action at this time.
0 commit comments