Function deriveConstants

  • Create a Constants object from the keys of a tagged or untagged record of constants

    Returns

    A Constants object where both the keys and their values are the ones from the input record

    Type Parameters

    Parameters

    • tag: Tag

      The tag to set to enable nominal typing

    • mcs: MCs

      The input record

    Returns ConstantsWrapper<{ [ K in keyof MCs]: K }, Tag>

Generated using TypeDoc