refactor(http, cloudflare): use unenv/
imports inside node:http
#1101
Annotations
9 errors and 1 warning
Run pnpm test:types:
src/runtime/fetch/call.ts#L25
Argument of type 'import("/home/runner/work/unenv/unenv/src/runtime/node/http/internal/request").IncomingMessage' is not assignable to parameter of type 'import("http").IncomingMessage'.
|
Run pnpm test:types:
src/runtime/fetch/call.ts#L75
Property 'destroy' does not exist on type 'IncomingMessage'.
|
Run pnpm test:types:
src/runtime/fetch/call.ts#L76
Property 'destroy' does not exist on type 'ServerResponse'.
|
Run pnpm test:types:
src/runtime/node/http/internal/request.ts#L4
Cannot find module 'unenv/runtime/node/stream/index' or its corresponding type declarations.
|
Run pnpm test:types:
src/runtime/node/http/internal/request.ts#L10
Class 'import("/home/runner/work/unenv/unenv/src/runtime/node/http/internal/request").IncomingMessage' incorrectly implements class 'import("http").IncomingMessage'. Did you mean to extend 'import("http").IncomingMessage' and inherit its members as a subclass?
|
Run pnpm test:types:
src/runtime/node/http/internal/response.ts#L5
Cannot find module 'unenv/runtime/node/stream/index' or its corresponding type declarations.
|
Run pnpm test:types:
src/runtime/node/http/internal/response.ts#L10
Class 'ServerResponse' incorrectly implements class 'ServerResponse<IncomingMessage>'. Did you mean to extend 'ServerResponse<IncomingMessage>' and inherit its members as a subclass?
|
Run pnpm test:types:
src/runtime/node/http/internal/response.ts#L41
Property 'emit' does not exist on type 'ServerResponse'.
|
Run pnpm test:types
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading