Type pagination

This commit is contained in:
Adria Navarro 2024-12-30 13:23:10 +01:00
parent bee3a4b233
commit 4ffb365c64
3 changed files with 6 additions and 2 deletions

View File

@ -107,7 +107,8 @@ export type Store = BaseStore &
Resize.Store &
Config.Store &
Conditions.Store &
Cache.Store
Cache.Store &
Viewport.Store
export const attachStores = (context: Store): Store => {
// Atomic store creation

View File

@ -1,6 +1,7 @@
import { derived } from "svelte/store"
import { Store as StoreContext } from "."
export const initialise = context => {
export const initialise = (context: StoreContext) => {
const { scrolledRowCount, rows, visualRowCapacity } = context
// Derive how many rows we have in total

View File

@ -10,6 +10,8 @@ interface ViewportDerivedStore {
columnRenderMap: Readable<Record<string, true>>
}
export type Store = ViewportDerivedStore
export const deriveStores = (context: StoreContext): ViewportDerivedStore => {
const {
rowHeight,