Skip to content

Commit 985402e

Browse files
authored
Export BatchResponseBody interface type
The BatchResponseBody interface is needed as parameter to several public methods, in particular the constructor for BatchResponseContent, but is not exported. This makes it harder to write type-safe code that makes a batch request and passes the body from the response JSON to BatchResponseContent without relying on implicit "any" typing.
1 parent c462815 commit 985402e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/BatchResponseContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface KeyValuePairObject {
2323
* @property {KeyValuePairObject[]} responses - An array of key value pair representing response object for every request
2424
* @property {string} [@odata.nextLink] - The nextLink value to get next set of responses in case of asynchronous batch requests
2525
*/
26-
interface BatchResponseBody {
26+
export interface BatchResponseBody {
2727
responses: KeyValuePairObject[];
2828
"@odata.nextLink"?: string;
2929
}

0 commit comments

Comments
 (0)