add cast method
This commit is contained in:
parent
eca1fd1b9c
commit
5f13775ec9
@ -73,4 +73,8 @@ export abstract class ListingComponent<T extends IListable> extends AutoUnsubscr
|
||||
isSelected(entity: T): boolean {
|
||||
return this.listingService.isSelected(entity);
|
||||
}
|
||||
|
||||
cast(entity: unknown): T {
|
||||
return entity as T;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user