libram
    Preparing search index...

    Variable byIngressConst

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

    Picks an option based on your current shadow rift ingress

    Type Declaration

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

        • S

        Parameters

        • options: Switch<Ingress, S>

          An object keyed by shadow rift ingress; it must either contain all possible ingresses, or have a default parameter.

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

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

        Returns S

        The option corresponding to your current shadow rift ingress.