NDNts

    Function StructFieldEnum

    • Declare a StructBuilder field type of non-negative integer from an enum.

      Type Parameters

      • E extends number

      Parameters

      • Enum: Record<number, string>

        A flat (not OR'ed flags) enum type.

      Returns StructFieldType<E>

      The field is defined as a flat enum type. If the field is required, it is initialized as zero.

    MMNEPVFCICPMFPCPTTAAATR