Skip to content

Commit 6526535

Browse files
author
Eva Pavl
committed
fix vehicle.ts file
1 parent b2097e6 commit 6526535

File tree

1 file changed

+12
-10
lines changed
  • homeworks/eva.pavlenko_Evapavl/11-dependency-injection/src/app/models

1 file changed

+12
-10
lines changed

homeworks/eva.pavlenko_Evapavl/11-dependency-injection/src/app/models/vehicle.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ export interface Vehicle {
66
type: string;
77
vehicle: string;
88
vin: string;
9-
post: {
10-
slug: string;
11-
protocol: string;
12-
}
13-
cost: {
14-
account: string;
15-
accountName: string;
16-
amount: string;
17-
currencyCode: string;
18-
}
9+
post: Post;
10+
cost: Cost;
1911
}
2012

13+
export interface Cost {
14+
account: string;
15+
accountName: string;
16+
amount: string;
17+
currencyCode: string;
18+
}
2119

20+
export interface Post {
21+
slug: string;
22+
protocol: string;
23+
}

0 commit comments

Comments
 (0)