Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Shape<T>

This need just use with context IO.Shape<T> instead of IO.IO<T>

Type parameters

  • T: (...args: any[]) => any

Hierarchy

  • IO<T>
    • Shape

Index

Methods

Methods

chain

  • chain<U>(fn: (value: ReturnType<T>) => U): U
  • Same like map, but... Result from fn function will not be wrapped up into IO.

    Type parameters

    • U

    Parameters

    • fn: (value: ReturnType<T>) => U
        • (value: ReturnType<T>): U
        • Parameters

          • value: ReturnType<T>

          Returns U

    Returns U

map

  • map<U>(fn: (value: ReturnType<T>) => U): IO<() => U>
  • This method running function from IO and result will be referred to fn function. Result from fn function will be wrapped up into IO.

    Type parameters

    • U

    Parameters

    • fn: (value: ReturnType<T>) => U
        • (value: ReturnType<T>): U
        • Parameters

          • value: ReturnType<T>

          Returns U

    Returns IO<() => U>

run

  • run(): ReturnType<T>
  • To run function from IO

    Returns ReturnType<T>

toString

  • toString(): string

Generated using TypeDoc