Skip to content

Commit

Permalink
Fix type error for web mock utils
Browse files Browse the repository at this point in the history
  • Loading branch information
cakecatz committed May 19, 2021
1 parent d5873cc commit a8dabda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/web/src/mocks/create-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function createHandler<T extends { serializeBinary(): Uint8Array }>(
serviceName: string,
getResponseMessage: (requestData: Uint8Array) => T
): HandlerType {
return rest.post(createMask(serviceName), (req, res, ctx) => {
return rest.post<Uint8Array>(createMask(serviceName), (req, res, ctx) => {
const arr: Uint8Array =
typeof req.body === "string" ? encoder.encode(req.body) : req.body;
const message = getResponseMessage(arr.slice(5));
Expand Down

0 comments on commit a8dabda

Please sign in to comment.