From 242c4869a32601c380db8da080a6cc2c94548f54 Mon Sep 17 00:00:00 2001 From: Theo Sun Date: Mon, 10 Aug 2020 12:45:40 +0800 Subject: [PATCH] chore: add response type for json batch --- src/builder/batch.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/builder/batch.ts b/src/builder/batch.ts index 1de65bb..bf7269b 100644 --- a/src/builder/batch.ts +++ b/src/builder/batch.ts @@ -19,3 +19,13 @@ export interface JsonBatchRequest { body?: T; } +export interface JsonBatchResponseBundle { + responses: JsonBatchRequest[] +} + +export interface JsonBatchResponse { + id: string; + status: number; + body?: any; + headers?: JsonBatchHeaders; +}