Browse Source

* add GuestsObject interface to represent guests

* add StaySearchFormFields type to represent the fields in the stay search form
* add PropertyType interface to represent a property type
* add ClassOfProperties interface to extend PropertyType
main
John Doe 1 year ago
parent
commit
08a8d19401
  1. 17
      src/app/(client-components)/type.ts

17
src/app/(client-components)/type.ts

@ -0,0 +1,17 @@
export interface GuestsObject {
guestAdults?: number;
guestChildren?: number;
guestInfants?: number;
}
export type StaySearchFormFields = "location" | "guests" | "dates";
export interface PropertyType {
name: string;
description: string;
checked: boolean;
}
export interface ClassOfProperties extends PropertyType {}
export type DateRage = [Date | null, Date | null];
Loading…
Cancel
Save