Fix types

This commit is contained in:
Adria Navarro 2023-09-13 10:31:39 +02:00
parent cf74f19381
commit 069b0d6161
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import { MIGRATIONS } from "../"
import * as helpers from "./helpers" import * as helpers from "./helpers"
import tk from "timekeeper" import tk from "timekeeper"
import { View } from "@budibase/types"
const timestamp = new Date().toISOString() const timestamp = new Date().toISOString()
tk.freeze(timestamp) tk.freeze(timestamp)
@ -52,7 +53,9 @@ describe("migrations", () => {
await config.createTable() await config.createTable()
await config.createLegacyView() await config.createLegacyView()
await config.createTable() await config.createTable()
await config.createLegacyView(structures.view(config.table!._id!)) await config.createLegacyView(
structures.view(config.table!._id!) as View
)
await config.createScreen() await config.createScreen()
await config.createScreen() await config.createScreen()

View File

@ -30,7 +30,7 @@ export interface ExportRowsParams {
format: Format format: Format
rowIds?: string[] rowIds?: string[]
columns?: string[] columns?: string[]
query: SearchFilters query?: SearchFilters
} }
export interface ExportRowsResult { export interface ExportRowsResult {