Skip to content

Commit

Permalink
feat(types): add request and response interfaces (#4389)
Browse files Browse the repository at this point in the history
### Description
Adds the high-level Request and Response interfaces

### Testing
`yarn test:all`
  • Loading branch information
milesziemer authored Feb 6, 2023
1 parent 3a0cc76 commit 6b1be0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export * from "./logger";
export * from "./middleware";
export * from "./pagination";
export * from "./profile";
export * from "./request";
export * from "./response";
export * from "./retry";
export * from "./serde";
Expand Down
4 changes: 4 additions & 0 deletions packages/types/src/request.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface Request {
destination: URL;
body?: any;
}
4 changes: 4 additions & 0 deletions packages/types/src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ export interface MetadataBearer {
*/
$metadata: ResponseMetadata;
}

export interface Response {
body: any;
}

0 comments on commit 6b1be0b

Please sign in to comment.