Matterway
    Preparing search index...

    Function step

    • Execute a step with hot-reload support.

      Type Parameters

      • Args extends unknown[]
      • ReturnType

      Parameters

      • fn: (...args: Args) => ReturnType

        The function to execute.

      • args: Args

        The arguments to pass to the function.

      Returns Promise<ReturnType>

      The result of the function execution.

      const result = await step(welcomeMessage, [ctx, arg2]);
      await step(success, [ctx, result]);