- subrecord<T>(ctor: (new (rec: Record) => T)): ((target: any, propertyKey: string) => any)
-
Parameters
-
ctor: (new (rec: Record) => T)
-
- new (rec: Record): T
-
Returns T
Returns ((target: any, propertyKey: string) => any)
-
- (target: any, propertyKey: string): any
-
Parameters
-
target: any
-
propertyKey: string
Returns any
Decorator for sublist subrecord fields with the subrecord shape represented by T (which defines the properties you want on the subrecord)