Type pagination
This commit is contained in:
parent
bee3a4b233
commit
4ffb365c64
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -10,6 +10,8 @@ interface ViewportDerivedStore {
|
|||
columnRenderMap: Readable<Record<string, true>>
|
||||
}
|
||||
|
||||
export type Store = ViewportDerivedStore
|
||||
|
||||
export const deriveStores = (context: StoreContext): ViewportDerivedStore => {
|
||||
const {
|
||||
rowHeight,
|
||||
|
|
Loading…
Reference in New Issue