Fix errors

This commit is contained in:
2025-10-09 16:34:10 +02:00
parent 2f96b55205
commit cbdd93e6ba
6 changed files with 26 additions and 26 deletions

View File

@@ -78,7 +78,7 @@ export const decodeBody = <A>(schema: Schema.Schema<A, any>) => {
};
export interface BodyData {
readonly body: null | Uint8Array;
readonly body: null | Uint8Array<ArrayBuffer>;
readonly headers: { readonly [_: string]: string };
}
@@ -100,7 +100,7 @@ export const emptyBody: () => BodyData = constant(Object.freeze<BodyData>({
headers: Object.freeze({}),
}));
export const cborBody: (bytes: Uint8Array) => BodyData = (bytes) => Object.freeze<BodyData>({
export const cborBody: (bytes: Uint8Array<ArrayBuffer>) => BodyData = (bytes) => Object.freeze<BodyData>({
body: bytes,
headers: Object.freeze({
"Content-Type": "application/cbor",