add cast method

This commit is contained in:
Dan Percic 2021-10-06 16:23:42 +03:00
parent eca1fd1b9c
commit 5f13775ec9

View File

@ -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;
}
}