Skip to content

Commit

Permalink
chore: add response type for json batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed Aug 10, 2020
1 parent 517bb6e commit 242c486
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/builder/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ export interface JsonBatchRequest<T = any> {
body?: T;
}

export interface JsonBatchResponseBundle {
responses: JsonBatchRequest[]
}

export interface JsonBatchResponse<T = any> {
id: string;
status: number;
body?: any;
headers?: JsonBatchHeaders;
}

0 comments on commit 242c486

Please sign in to comment.