Fix types
This commit is contained in:
parent
68f29560bd
commit
a643f31857
|
@ -1,10 +1,10 @@
|
|||
import { derivedMemo } from "../../../utils"
|
||||
import { derived, Readable } from "svelte/store"
|
||||
import { derived, Readable, Writable } from "svelte/store"
|
||||
import { UIDatasource, ViewV2Type } from "@budibase/types"
|
||||
import { Store as StoreContext } from "."
|
||||
|
||||
interface ConfigStore {
|
||||
datasource: UIDatasource
|
||||
export interface ConfigStore {
|
||||
datasource: Writable<UIDatasource>
|
||||
initialSortColumn: Readable<string>
|
||||
initialSortOrder: any
|
||||
initialFilter: any
|
||||
|
|
|
@ -14,6 +14,7 @@ import {
|
|||
} from "@budibase/types"
|
||||
import { Store as StoreContext } from "."
|
||||
import { DatasourceActions } from "./datasources"
|
||||
import { ConfigStore } from "./config"
|
||||
|
||||
interface DatasourceStore {
|
||||
definition: Writable<UIDatasource>
|
||||
|
@ -28,7 +29,7 @@ interface DerivedDatasourceStore {
|
|||
}
|
||||
|
||||
interface ActionDatasourceStore {
|
||||
datasource: DatasourceStore["definition"] & {
|
||||
datasource: ConfigStore["datasource"] & {
|
||||
actions: DatasourceActions & {
|
||||
refreshDefinition: () => Promise<void>
|
||||
changePrimaryDisplay: (column: string) => Promise<void>
|
||||
|
|
Loading…
Reference in New Issue