Type alias SizerFunc<T>

SizerFunc<T>: ((item) => Promise<number> | number)

Type Parameters

  • T

    Type of item to have size computed

Type declaration

    • (item): Promise<number> | number
    • Function that returns the user-defined size of an item

      Parameters

      • item: T

        Item to have size computed

      Returns Promise<number> | number

      User-defined size of item

Generated using TypeDoc