src/Collection.ts
Collection
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class Collection implements ICollection {
/**
* List of custom model types
*
Function insert
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@action public insert(data: Array<object>|object): Array<IModel> {
const items = [].concat(data)
.map((item) => {
const type: IType = item[TYPE_PROP];
if (!type) {