Fix types

This commit is contained in:
Adria Navarro 2025-01-02 16:25:25 +01:00
parent f0d60c6063
commit 69ad15f79c
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -321,7 +321,7 @@ export default abstract class DataFetch<
abstract getData(): Promise<{
rows: Row[]
info?: any
hasNextPage: boolean
hasNextPage?: boolean
cursor?: any
error?: any
}>

View File

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

View File

@ -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 }, {}> {