Constrained gernerics
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import {sortByNumberAscending, sortByStringAscending, sortByDateAscending} from '../../services/sorting.service';
|
import {sortByNumberAscending, sortByStringAscending, sortByDateAscending} from '../../services/sorting.service';
|
||||||
import {Priority, ScrumTask} from '../../services/backend.service';
|
import {Priority, ScrumTask, ScrumUserstory, ScrumSprint} from '../../services/backend.service';
|
||||||
|
|
||||||
export abstract class TableComponentBase<T> {
|
export abstract class TableComponentBase<T extends ScrumTask | ScrumUserstory | ScrumSprint> {
|
||||||
public sortBy: string;
|
public sortBy: string;
|
||||||
public sortDescending = false;
|
public sortDescending = false;
|
||||||
public items: T[] = [];
|
public items: T[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user