Skip to content

Commit 6b1be0b

Browse files
authored
feat(types): add request and response interfaces (#4389)
### Description Adds the high-level Request and Response interfaces ### Testing `yarn test:all`
1 parent 3a0cc76 commit 6b1be0b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/types/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export * from "./logger";
1313
export * from "./middleware";
1414
export * from "./pagination";
1515
export * from "./profile";
16+
export * from "./request";
1617
export * from "./response";
1718
export * from "./retry";
1819
export * from "./serde";

packages/types/src/request.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface Request {
2+
destination: URL;
3+
body?: any;
4+
}

packages/types/src/response.ts

+4
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ export interface MetadataBearer {
3838
*/
3939
$metadata: ResponseMetadata;
4040
}
41+
42+
export interface Response {
43+
body: any;
44+
}

0 commit comments

Comments
 (0)