diff --git a/packages/frontend-core/src/api/screens.ts b/packages/frontend-core/src/api/screens.ts index 27b4dc482d..bdb01e1427 100644 --- a/packages/frontend-core/src/api/screens.ts +++ b/packages/frontend-core/src/api/screens.ts @@ -1,9 +1,13 @@ -import { Screen } from "@budibase/types" +import { + DeleteScreenResponse, + SaveScreenRequest, + SaveScreenResponse, +} from "@budibase/types" import { BaseAPIClient } from "./types" export interface ScreenEndpoints { - saveScreen: (screen: Screen) => Promise - deleteScreen: (id: string, rev: string) => Promise<{ message: string }> + saveScreen: (screen: SaveScreenRequest) => Promise + deleteScreen: (id: string, rev: string) => Promise } export const buildScreenEndpoints = (API: BaseAPIClient): ScreenEndpoints => ({