Instead of Entity[] use EntityState

This commit is contained in:
aditya.chandel
2024-12-28 23:06:54 -07:00
parent da153d6c04
commit a5e321319a
17 changed files with 398 additions and 251 deletions
@@ -0,0 +1,7 @@
import {Book} from '../book.model';
export interface BookState {
books: Book[] | null;
loaded: boolean;
error: string | null;
}
@@ -0,0 +1,7 @@
import {Library} from '../library.model';
export interface LibraryState {
libraries: Library[] | null;
loaded: boolean;
error: string | null;
}
@@ -0,0 +1,7 @@
import {Shelf} from '../shelf.model';
export interface ShelfState {
shelves: Shelf[] | null;
loaded: boolean;
error: string | null;
}