import Star from "~/models/Star"; import type { PaginationParams } from "~/types"; import IndexedStore from "./base/IndexedStore"; import type RootStore from "./RootStore"; import type { PaginatedResponse } from "./base/Store"; export default class StarsStore extends IndexedStore { constructor(rootStore: RootStore) { super(rootStore, Star); } fetchPage = async ( params?: PaginationParams ): Promise> => this.fetchPaginated("/stars.list", params, [this.rootStore.documents]); }