enable noImplicitReturns rule

This commit is contained in:
Denys Vuika
2019-10-16 09:45:52 +01:00
parent fdc85a14f7
commit af67703371
4 changed files with 12 additions and 7 deletions

View File

@@ -24,7 +24,11 @@
*/
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { NodePaging, Pagination, MinimalNodeEntity } from '@alfresco/js-api';
import {
Pagination,
MinimalNodeEntity,
ResultSetPaging
} from '@alfresco/js-api';
import { ActivatedRoute, Params, Router } from '@angular/router';
import {
SearchQueryBuilderService,
@@ -57,7 +61,7 @@ export class SearchResultsComponent extends PageComponent implements OnInit {
searchedWord: string;
queryParamName = 'q';
data: NodePaging;
data: ResultSetPaging;
totalResults = 0;
hasSelectedFilters = false;
sorting = ['name', 'asc'];
@@ -201,7 +205,7 @@ export class SearchResultsComponent extends PageComponent implements OnInit {
return this.formatFields(fields, userInput);
}
onSearchResultLoaded(nodePaging: NodePaging) {
onSearchResultLoaded(nodePaging: ResultSetPaging) {
this.data = nodePaging;
this.totalResults = this.getNumberOfResults();
this.hasSelectedFilters = this.isFiltered();