mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-622] No implicit returns (#5157)
* enable noImplicitReturns rule * type fixes * fix return types * fix return value * fix tests * fix visibility service * update tests * add missing types * fix test
This commit is contained in:
@@ -292,7 +292,7 @@ export class ProcessInstanceListComponent extends DataTableSchema implements On
|
||||
return instances;
|
||||
}
|
||||
|
||||
getProcessNameOrDescription(processInstance, dateFormat): string {
|
||||
getProcessNameOrDescription(processInstance, dateFormat: string): string {
|
||||
let name = '';
|
||||
if (processInstance) {
|
||||
name = processInstance.name ||
|
||||
@@ -301,7 +301,7 @@ export class ProcessInstanceListComponent extends DataTableSchema implements On
|
||||
return name;
|
||||
}
|
||||
|
||||
getFormatDate(value, format: string) {
|
||||
getFormatDate(value: any, format: string) {
|
||||
const datePipe = new DatePipe('en-US');
|
||||
try {
|
||||
return datePipe.transform(value, format);
|
||||
@@ -310,7 +310,7 @@ export class ProcessInstanceListComponent extends DataTableSchema implements On
|
||||
}
|
||||
}
|
||||
|
||||
private createRequestNode() {
|
||||
private createRequestNode(): ProcessFilterParamRepresentationModel {
|
||||
const requestNode = {
|
||||
appDefinitionId: this.appId,
|
||||
processDefinitionId: this.processDefinitionId,
|
||||
|
Reference in New Issue
Block a user