import { VendureConfig, Provider } from '../' import { OperationContext } from '@commerce/api/operations' export type Page = any export type GetPageResult = T export type PageVariables = { id: number } export default function getPageOperation({ commerce, }: OperationContext) { async function getPage(opts: { url?: string variables: PageVariables config?: Partial preview?: boolean }): Promise async function getPage(opts: { url: string variables: V config?: Partial preview?: boolean }): Promise> async function getPage({ url, variables, config: cfg, preview, }: { url?: string variables: PageVariables config?: Partial preview?: boolean }): Promise { const config = commerce.getConfig(cfg) return {} } return getPage }