libram
    Preparing search index...

    Function withProperty

    • Carries out a callback during which a property will be set as supplied

      Type Parameters

      Parameters

      • property: P

        Property to set during callback

      • value: unknown

        Value to set property during callback

      • callback: () => T

        Callback to execute with set properties

      Returns T

      Return value of the supplied callback