Fix types
This commit is contained in:
parent
f0d60c6063
commit
69ad15f79c
|
@ -3,7 +3,7 @@ import { BaseAPIClient } from "./types"
|
|||
|
||||
export interface ViewEndpoints {
|
||||
// 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>
|
||||
saveView: (view: any) => Promise<any>
|
||||
deleteView: (name: string) => Promise<any>
|
||||
|
|
|
@ -321,7 +321,7 @@ export default abstract class DataFetch<
|
|||
abstract getData(): Promise<{
|
||||
rows: Row[]
|
||||
info?: any
|
||||
hasNextPage: boolean
|
||||
hasNextPage?: boolean
|
||||
cursor?: 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) {
|
||||
return null
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ import { get } from "svelte/store"
|
|||
import DataFetch from "./DataFetch.js"
|
||||
import { TableNames } from "../constants"
|
||||
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"
|
||||
|
||||
export default class UserFetch extends DataFetch<{ tableId: string }, {}> {
|
||||
|
|
Loading…
Reference in New Issue