Function LRPCType

  • This decorator is used to decorate a field with any custom type definitions not avaliable in the library like enumerations, unions, etc. example usage: LRPCType('start' | 'stop' | 'pause' | 'resume', false) fieldName: 'start' | 'stop' | 'pause' | 'resume'

    Parameters

    • value: any
    • optional: boolean

    Returns (target: any, key: string) => void