Type alias Generator<A>

Generator<A>: (() => A)

Type Parameters

  • A

    Any type

Type declaration

    • (): A
    • Type alias for functions that take no parameters and return a Value.

      Returns A

      Example

      const fn1 = () => 10
      const fn2 = () => "foo"
      const fn3 = () => Option.None()

Generated using TypeDoc