export default null ; type Reservation = unknown ; type Reserve = { ( from , to , destination ) : Reservation ; ( from , destination ) : Reservation ; ( destination ) : Reservation ; } ; let reserve = ( fromOrDestination , toOrDestination ? , destination ? ) => { if ( fromOrDestination instanceof Date && toOrDestination instanceof Date && destination !== undefined ) { } else if ( fromOrDestination instanceof Date && typeof toOrDestination === 'string' ) { } else if ( typeof fromOrDestination === 'string' ) { } } ; function call < T extends [ unknown , string , ... unknown [ ] ] , R > ( f , ... args ) { return f ( ... args ) ; } function fill ( length , value ) { return Array . from ( { length } , ( ) => value ) ; } call ( fill , 10 , 'a' ) ; is ( 'string' , 'otherstring' ) ; is ( true , false ) ; is ( 42 , 42 ) ; is ( 10 , 'foo' ) ; is ( [ 1 ] , [ 1 , 2 ] , [ 1 , 2 , 3 ] ) ; function is < T > ( a , ... b ) { return b . every ( _ => _ === a ) ; }