Fix types

This commit is contained in:
Adria Navarro 2024-12-30 10:07:18 +01:00
parent 68f29560bd
commit a643f31857
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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>