Fix types
This commit is contained in:
parent
f0d60c6063
commit
69ad15f79c
|
@ -3,7 +3,7 @@ import { BaseAPIClient } from "./types"
|
||||||
|
|
||||||
export interface ViewEndpoints {
|
export interface ViewEndpoints {
|
||||||
// Missing request or response types
|
// Missing request or response types
|
||||||
fetchViewData: (name: string, opts: any) => Promise<Row[]>
|
fetchViewData: (name: string, opts?: any) => Promise<Row[]>
|
||||||
exportView: (name: string, format: string) => Promise<any>
|
exportView: (name: string, format: string) => Promise<any>
|
||||||
saveView: (view: any) => Promise<any>
|
saveView: (view: any) => Promise<any>
|
||||||
deleteView: (name: string) => Promise<any>
|
deleteView: (name: string) => Promise<any>
|
||||||
|
|
|
@ -321,7 +321,7 @@ export default abstract class DataFetch<
|
||||||
abstract getData(): Promise<{
|
abstract getData(): Promise<{
|
||||||
rows: Row[]
|
rows: Row[]
|
||||||
info?: any
|
info?: any
|
||||||
hasNextPage: boolean
|
hasNextPage?: boolean
|
||||||
cursor?: any
|
cursor?: any
|
||||||
error?: any
|
error?: any
|
||||||
}>
|
}>
|
||||||
|
|
|
@ -11,7 +11,7 @@ export default class TableFetch extends DataFetch<UITable, Table> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async getDefinition(datasource: UITable | null) {
|
async getDefinition(datasource: UITable) {
|
||||||
if (!datasource?.tableId) {
|
if (!datasource?.tableId) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { get } from "svelte/store"
|
||||||
import DataFetch from "./DataFetch.js"
|
import DataFetch from "./DataFetch.js"
|
||||||
import { TableNames } from "../constants"
|
import { TableNames } from "../constants"
|
||||||
import { utils } from "@budibase/shared-core"
|
import { utils } from "@budibase/shared-core"
|
||||||
import { BasicOperator, SearchUsersRequest, Table } from "@budibase/types"
|
import { BasicOperator, Table } from "@budibase/types"
|
||||||
import { APIClient } from "../api/types.js"
|
import { APIClient } from "../api/types.js"
|
||||||
|
|
||||||
export default class UserFetch extends DataFetch<{ tableId: string }, {}> {
|
export default class UserFetch extends DataFetch<{ tableId: string }, {}> {
|
||||||
|
|
Loading…
Reference in New Issue