Fix errors
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user