import { initOrUpdateProperty } from '../property/init-or-update-property.function';
/**
 * Makes sure the property will be mapped to a L(ist) type. The modelClass is required if the collection items
 * have some property decorators, so we can retrieve this information using the model class.
 */
export function TypedArray(modelClass) {
    return function (target, propertyKey) {
        if (typeof propertyKey === 'string') {
            var typeInfo = {
                type: Array,
                isCustom: true,
            };
            if (modelClass) {
                typeInfo.genericType = modelClass;
            }
            initOrUpdateProperty({ typeInfo: typeInfo }, target, propertyKey);
        }
    };
}
//# sourceMappingURL=typed-array.decorator.js.map