[AAE-7242] fix eslint warnings for content services project (#7505)

* fix eslint warnings for content services project

* fix typing issues
This commit is contained in:
Denys Vuika
2022-02-17 15:23:38 +00:00
committed by GitHub
parent bca5a783ab
commit 9f72e30fbc
158 changed files with 2604 additions and 2715 deletions

View File

@@ -46,6 +46,7 @@ export class DocumentActionsService {
/**
* Gets the handler for an action.
*
* @param key Identifier of the action
* @returns The handler for the action
*/
@@ -59,6 +60,7 @@ export class DocumentActionsService {
/**
* Sets a new handler for an action.
*
* @param key Identifier of the action
* @param handler Handler for the action
* @returns False if the key was an empty/null string, true otherwise
@@ -74,6 +76,7 @@ export class DocumentActionsService {
/**
* Checks if actions can be executed for an item.
*
* @param nodeEntry Item to receive an action
* @returns True if the action can be executed on this item, false otherwise
*/
@@ -134,7 +137,7 @@ export class DocumentActionsService {
this.permissionEvent.next(new PermissionModel({
type: 'content',
action: 'delete',
permission: permission
permission
}));
return throwError(new Error('No permission to delete'));
}