Imap overview

Added in v1.0.0


Table of contents


Mapping

Imap

A Schema that maps the output type of another Schema. Guard is not invariant, and Imap requires an explicit guard for the output type.

Signature

export declare const Imap: <A, B>(
  targetGuard: G.Guard<B>,
  f: (a: A) => B,
  g: (b: B) => A,
  newName?: string | undefined
) => <I>(target: Schema<I, A>) => Schema<I, B>

Added in v1.0.0