react-period-of-stay-input
Version:
React.js component for entering a period of stay in a hotel: check-in + check-out date
13 lines (12 loc) • 436 B
TypeScript
import Day from './Day';
import Environment from './Environment';
export default class Model {
private _checkInDate;
private _checkOutDate;
constructor(checkInDate: Day, checkOutDate: Day);
readonly checkInDate: Day;
readonly checkOutDate: Day;
newCheckIn(checkInDate: string, environment: Environment): Model;
newCheckOut(checkOutDate: string, environment: Environment): Model;
nightsCount(): number;
}