mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-30 18:14:45 +00:00
enable noImplicitReturns rule
This commit is contained in:
parent
fdc85a14f7
commit
af67703371
6
package-lock.json
generated
6
package-lock.json
generated
@ -29,9 +29,9 @@
|
||||
}
|
||||
},
|
||||
"@alfresco/js-api": {
|
||||
"version": "3.6.0-e6e63bb456c4b5c98ee92b18e63e6e69f08b6557",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-e6e63bb456c4b5c98ee92b18e63e6e69f08b6557.tgz",
|
||||
"integrity": "sha512-13KrK7fvipEhtnr3Z9vrcpST2djkHyja2V0KnH6TXWkMLH7hhRnoFYYUlF0ivlH+RhE3oNr/aCUOloXH9b3PtQ==",
|
||||
"version": "3.6.0-30c45018502e789b5f32210201829125b285bcce",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-30c45018502e789b5f32210201829125b285bcce.tgz",
|
||||
"integrity": "sha512-i65bwt3IIJrfOJaej17YOh3TWR5gX1NUyh1ZCkZvgaVz3LDPDO+ivaBiVxBv37eJzb89nRxwQS4TmJ98zVAGBA==",
|
||||
"requires": {
|
||||
"event-emitter": "0.3.4",
|
||||
"minimatch": "3.0.4",
|
||||
|
@ -39,7 +39,7 @@
|
||||
"@alfresco/adf-content-services": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||
"@alfresco/adf-core": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||
"@alfresco/adf-extensions": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||
"@alfresco/js-api": "3.6.0-e6e63bb456c4b5c98ee92b18e63e6e69f08b6557",
|
||||
"@alfresco/js-api": "3.6.0-30c45018502e789b5f32210201829125b285bcce",
|
||||
"@angular/animations": "7.2.15",
|
||||
"@angular/cdk": "^7.3.7",
|
||||
"@angular/common": "7.2.15",
|
||||
|
@ -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();
|
||||
|
@ -9,6 +9,7 @@
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"noUnusedLocals": true,
|
||||
"noImplicitReturns": true,
|
||||
"target": "es5",
|
||||
"typeRoots": ["node_modules/@types"],
|
||||
"lib": ["es2018", "dom"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user