@@ -129,24 +129,24 @@ type DecoratorArgs<T extends JSORMBase> =
129
129
| AssociationFactoryOpts < T >
130
130
| string
131
131
| typeof JSORMBase
132
- /*
133
- * Yup that's a super-Java-y method name. Decorators in
132
+ /*
133
+ * Yup that's a super-Java-y method name. Decorators in
134
134
* ES7/TS are either of the form:
135
- *
135
+ *
136
136
* @decorator foo : string
137
- * or
137
+ * or
138
138
* @decorator (options) foo : string
139
- *
140
- * The first is a function that directly decorates the
139
+ *
140
+ * The first is a function that directly decorates the
141
141
* property, while this second is a factory function
142
142
* that returns a decorator function.
143
- *
143
+ *
144
144
* This method builds the factory function for each of our
145
- * association types.
146
- *
145
+ * association types.
146
+ *
147
147
* Additionally, users without decorator support can apply these
148
148
* to their ES6-compatible classes directly if they prefer:
149
- *
149
+ *
150
150
* ``` javascript
151
151
* class Person extends ApplicationRecord {
152
152
* fullName() { `${this.firstName} ${this.lastName} `}
@@ -155,7 +155,7 @@ type DecoratorArgs<T extends JSORMBase> =
155
155
* Attr(Person, 'lastName')
156
156
* BelongsTo(Person, 'mother', { type: Person })
157
157
* ```
158
- *
158
+ *
159
159
*/
160
160
161
161
const AssociationDecoratorFactoryBuilder = < T extends JSORMBase > (
@@ -220,7 +220,7 @@ const AssociationDecoratorFactoryBuilder = <T extends JSORMBase>(
220
220
attrDefinition . owner = target . constructor
221
221
attrDefinition . apply ( ModelClass )
222
222
223
- attrDefinition . descriptor ( )
223
+ return attrDefinition . descriptor ( )
224
224
}
225
225
226
226
if ( isModelClass ( targetOrConfig ) && propertyKey ) {
0 commit comments