fix: prevent instanceof
handler check failures between different MSW versions
#1146
Annotations
5 errors
Build:
src/core/ws/handleWebSocketEvent.ts#L9
Cannot find module '../utils/internal/toRequestHandlersOnly' or its corresponding type declarations.
|
Build:
src/core/ws/handleWebSocketEvent.ts#L35
Argument of type '{ event: MessageEvent<WebSocketConnectionData>; parsedResult: WebSocketHandlerParsedResult | Promise<any>; }' is not assignable to parameter of type '{ request: Request; parsedResult: any; resolutionContext?: ResponseResolutionContext | undefined; } & { event: MessageEvent<WebSocketConnectionData>; parsedResult: WebSocketHandlerParsedResult; }'.
|
Build:
src/core/ws/handleWebSocketEvent.ts#L37
Argument of type '{ event: MessageEvent<WebSocketConnectionData>; }' is not assignable to parameter of type '{ request: Request; resolutionContext?: ResponseResolutionContext | undefined; } & { event: MessageEvent<WebSocketConnectionData>; }'.
|
Build:
src/core/ws/handleWebSocketEvent.ts#L42
Argument of type 'RequestHandler<RequestHandlerDefaultInfo, any, any, RequestHandlerOptions> | WebSocketHandler' is not assignable to parameter of type 'WebSocketHandler'.
|
Build
Process completed with exit code 1.
|
Loading