Commit 4ee599f8 by Wolfram Kriesing

Less Maybe types.

parent 5d1cfc23
......@@ -15,8 +15,7 @@ export class HotelBuilder extends DestinationBuilder<HotelType> {
this.destination = {type: 'hotel', name: '', passions: []};
}
addPassion(passion: string) {
if (this.destination.passions)
this.destination.passions.push(passion);
this.destination.passions.push(passion);
return this;
}
addCity(city: string) {
......
......@@ -11,7 +11,7 @@ type HotelType = {
type: 'hotel';
name: string;
city?: string;
passions?: Array<string>;
passions: Array<string>;
};
type DestinationListType =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment