UNPKG

fantasy-types

Version:

Fantasy Land types definitions

5 lines (4 loc) 129 B
// the opposite as Functor `.map` export interface Contravariant<T> { contramap: <T1>(fn: (a: T) => T1) => Contravariant<T>; }