Skip to content

Commit 99b049f

Browse files
authored
fix(offers, offer requests): remove Client import (#374)
Importing `Client` caused `node-fetch` to be included in the package, and our rollup configuration doesn't support the way that package export things right now.
1 parent 90da532 commit 99b049f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/booking/OfferRequests/OfferRequests.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Client } from '../../Client'
21
import { Resource } from '../../Resource'
32
import {
43
CreateOfferRequest,
@@ -21,7 +20,7 @@ export class OfferRequests extends Resource {
2120
*/
2221
path: string
2322

24-
constructor(client: Client) {
23+
constructor(client: any) {
2524
super(client)
2625
this.path = 'air/offer_requests'
2726
}

src/booking/Offers/Offers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Client } from '../../Client'
21
import { Resource } from '../../Resource'
32
import {
43
DuffelResponse,
@@ -25,7 +24,7 @@ export class Offers extends Resource {
2524
*/
2625
path: string
2726

28-
constructor(client: Client) {
27+
constructor(client: any) {
2928
super(client)
3029
this.path = 'air/offers'
3130
}

0 commit comments

Comments
 (0)