File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/repository/src/decorators Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
ModelDefinition ,
15
15
ModelDefinitionSyntax ,
16
16
PropertyDefinition ,
17
+ PropertyType ,
17
18
RelationDefinitionMap ,
18
19
} from '../model' ;
19
20
import { RELATIONS_KEY } from './relation.decorator' ;
@@ -104,12 +105,13 @@ export namespace property {
104
105
105
106
/**
106
107
*
107
- * @param itemType The class of the array to decorate
108
+ * @param itemType The type of array items.
109
+ * Examples: `number`, `Product`, `() => Order`.
108
110
* @param definition Optional PropertyDefinition object for additional
109
111
* metadata
110
112
*/
111
113
export function array (
112
- itemType : Function ,
114
+ itemType : PropertyType ,
113
115
definition ?: Partial < PropertyDefinition > ,
114
116
) {
115
117
return function ( target : Object , propertyName : string ) {
You can’t perform that action at this time.
0 commit comments