File tree 5 files changed +10
-10
lines changed
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
// remove type imports from http for Deno compatibility
2
2
// see https://github.com/octokit/octokit.js/issues/24#issuecomment-817361886
3
- // import { IncomingMessage } from "http";
3
+ // import type { IncomingMessage } from "node: http";
4
4
type IncomingMessage = any ;
5
5
6
6
const WEBHOOK_HEADERS = [
Original file line number Diff line number Diff line change 2
2
import AggregateError from "aggregate-error" ;
3
3
4
4
// 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
+ // }
11
11
// }
12
12
type IncomingMessage = any ;
13
13
Original file line number Diff line number Diff line change 1
1
// remove type imports from http for Deno compatibility
2
2
// 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";
4
4
type IncomingMessage = any ;
5
5
type ServerResponse = any ;
6
6
Original file line number Diff line number Diff line change 1
1
// remove type imports from http for Deno compatibility
2
2
// 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";
4
4
type IncomingMessage = any ;
5
5
type ServerResponse = any ;
6
6
Original file line number Diff line number Diff line change 5
5
WebhookError ,
6
6
createNodeMiddleware ,
7
7
} from "../src/index.ts" ;
8
- import { createServer } from "http" ;
8
+ import { createServer } from "node: http" ;
9
9
import type {
10
10
HandlerFunction ,
11
11
RemoveHandlerFunction ,
You can’t perform that action at this time.
0 commit comments