export const ModelMapper = < From , To , Options = Partial < { } > > ( map ) : { map : ( model : From , options ? : Options ) => To ; mapper : ( options ? : Options ) => ( model : From ) => To ; } => ( { map , mapper : options => model => map ( model , options ) } ) ;