@b-jones-rfd/func-help - v0.7.1
    Preparing search index...

    Type Alias Effect<A>

    Effect: () => A

    A deferred synchronous computation: the thunk IO.from wraps.

    No signature in the package requires it; it is offered so callers can name an effect before handing it to IO.

    Type Parameters

    • A

      The value the effect produces.

    Type Declaration

      • (): A
      • Returns A

    import { IO, type Effect } from '@b-jones-rfd/func-help'
    const now: Effect<number> = () => Date.now()
    const time = IO.from(now)