mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
fix linting issues
This commit is contained in:
@@ -21,6 +21,7 @@ export const SelectableListActionTypes = {
|
||||
|
||||
/* tslint:disable:max-classes-per-file */
|
||||
export abstract class SelectableListAction implements Action {
|
||||
// tslint:disable-next-line:no-shadowed-variable
|
||||
constructor(public type, public id: string) {
|
||||
}
|
||||
}
|
||||
@@ -75,12 +76,9 @@ export class SelectableListSetSelectionAction extends SelectableListAction {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class SelectableListDeselectAllAction extends SelectableListAction {
|
||||
constructor(id: string) {
|
||||
super(SelectableListActionTypes.DESELECT_ALL, id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* tslint:enable:max-classes-per-file */
|
||||
/* tslint:enable:max-classes-per-file */
|
||||
|
@@ -12,7 +12,7 @@ import { hasNoValue } from '../../empty.util';
|
||||
/**
|
||||
* Represents the state of all selectable lists in the store
|
||||
*/
|
||||
export type SelectableListsState = {
|
||||
export interface SelectableListsState {
|
||||
[id: string]: SelectableListState;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ function clearSelection(id: string) {
|
||||
return { id: id, selection: [] };
|
||||
}
|
||||
|
||||
|
||||
function isObjectInSelection(selection: ListableObject[], object: ListableObject) {
|
||||
return selection.findIndex((selected) => selected.equals(object)) >= 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user