Type anys
This commit is contained in:
parent
332fdc5f38
commit
81ed65b099
|
@ -5,10 +5,10 @@ import { Store as StoreContext } from "."
|
||||||
|
|
||||||
interface ConfigStore {
|
interface ConfigStore {
|
||||||
datasource: UIDatasource
|
datasource: UIDatasource
|
||||||
initialSortColumn: any
|
initialSortColumn: Readable<string>
|
||||||
initialSortOrder: any
|
initialSortOrder: any
|
||||||
initialFilter: any
|
initialFilter: any
|
||||||
fixedRowHeight: any
|
fixedRowHeight: Readable<number>
|
||||||
schemaOverrides: any
|
schemaOverrides: any
|
||||||
notifySuccess: any
|
notifySuccess: any
|
||||||
notifyError: any
|
notifyError: any
|
||||||
|
|
|
@ -70,23 +70,19 @@ export type Store = BaseStore &
|
||||||
Scroll.Store & {
|
Scroll.Store & {
|
||||||
// TODO while typing the rest of stores
|
// TODO while typing the rest of stores
|
||||||
sort: Writable<any>
|
sort: Writable<any>
|
||||||
initialFilter: Writable<any>
|
|
||||||
initialSortColumn: Writable<any>
|
|
||||||
initialSortOrder: Writable<any>
|
|
||||||
subscribe: any
|
subscribe: any
|
||||||
config: Writable<any>
|
config: Writable<any>
|
||||||
dispatch: (event: string, data: any) => any
|
dispatch: (event: string, data: any) => any
|
||||||
notifications: Writable<any>
|
notifications: Writable<any>
|
||||||
schemaOverrides: Writable<any>
|
|
||||||
gridID: string
|
gridID: string
|
||||||
props: Writable<any>
|
props: Writable<any>
|
||||||
width: Writable<number>
|
width: Writable<number>
|
||||||
fixedRowHeight: Writable<number>
|
|
||||||
bounds: Readable<any>
|
bounds: Readable<any>
|
||||||
height: Readable<number>
|
height: Readable<number>
|
||||||
} & Rows.Store &
|
} & Rows.Store &
|
||||||
Reorder.Store &
|
Reorder.Store &
|
||||||
Resize.Store
|
Resize.Store &
|
||||||
|
Config.Store
|
||||||
|
|
||||||
export const attachStores = (context: Store): Store => {
|
export const attachStores = (context: Store): Store => {
|
||||||
// Atomic store creation
|
// Atomic store creation
|
||||||
|
|
Loading…
Reference in New Issue