libram
    Preparing search index...

    Function withFamiliar

    • Perform an action while using a particular familiar

      Type Parameters

      • T

      Parameters

      • familiar: Familiar

        The familiar you'd like to use

      • action: (success: boolean) => T

        A function that takes one argument--whether or not we successfully swapped to the requested familiar--and performs an action

      Returns T

      The return value of action