Tweakr
    Preparing search index...

    Type Alias AsyncFn<I, O>

    AsyncFn: (input: I) => Promise<O> | O

    Represents a function that can be asynchronous or synchronous.

    Type Parameters

    • I = any

      Input type.

    • O = any

      Output type.

    Type Declaration

      • (input: I): Promise<O> | O
      • Parameters

        • input: I

          The input value.

        Returns Promise<O> | O

        A value of type O or a Promise resolving to O.

    1.0.0