• Usage:

    enum OneOrTwo { One = 1, Two = 2, }
    IsEnum({ enum: { OneOrTwo } })

    IsEnum({ enum: { OneOrTwo: [1, 2] } })

    Type Parameters

    • T extends string | number

    Parameters

    Returns PropertyDecorator

Generated using TypeDoc