libram
    Preparing search index...

    Type Alias Switch<T, S>

    Switch: Record<T, S> | Partial<{ [x in T]: S }> & { default: S }

    An object keyed by string type T, with values of S. or contains a 'default' parameter to use as a fallback.

    Type Parameters

    • T extends string
    • S