Type alias Transformer<TParsed, TUnparsed, ReturnsOption>

Transformer<TParsed extends {}, TUnparsed extends {}, ReturnsOption extends boolean>: {
    apply: ((unparsed: TUnparsed) => neverthrow.Result<MaybeOption<ReturnsOption, TParsed>, ParsingError>);
    unapply: ((parsed: TParsed) => neverthrow.Result<MaybeOption<ReturnsOption, TUnparsed>, ParsingError>);
}

Type Parameters

  • TParsed extends {}
  • TUnparsed extends {}
  • ReturnsOption extends boolean = false