screeps-clockwork
    Preparing search index...

    Function persist

    • Persist an ephemeral item. This means that the item will not be freed after the current tick.

      Type Parameters

      • T extends { free: () => void }

      Parameters

      • item: T

        The item to be persisted.

      Returns T

      The item.