Function bitFieldDecoratorFactory

  • bitFieldDecoratorFactory is a function to help with the creation of BitField type decorators.

    Type Parameters

    • This

      The type of the bitfield.

    • Value

      The type of the property decorated or the target type the bitfield resolve to.

    Parameters

    • name: string

      Decorator name

    • len: number

      Size of the bitfield property

    • opt: Partial<BitFieldOptions> = BitFieldOptionsDefault

      Partial definition of the BitFieldOptions

    Returns DecoratorType<This, Value>