libram
    Preparing search index...

    Variable byStatConst

    byStat: <S>(
        options: Switch<StatType, S>,
        alternateSource?: StatType | ((...args: never[]) => StatType),
    ) => S = ...

    Picks an option based on your primestat

    Type Declaration

      • <S>(
            options: Switch<StatType, S>,
            alternateSource?: StatType | ((...args: never[]) => StatType),
        ): S
      • Type Parameters

        • S

        Parameters

        • options: Switch<StatType, S>

          An object keyed by stat; it must either contain all stats, or have a default parameter.

        • OptionalalternateSource: StatType | ((...args: never[]) => StatType)

          An optional alternate way of determining which Stat to choose by.

        Returns S

        The option corresponding to your primestat.