mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
20 lines
424 B
TypeScript
20 lines
424 B
TypeScript
export type Page = { url: string }
|
|
export type GetAllPagesResult = { pages: Page[] }
|
|
import type { LocalConfig } from '../index'
|
|
|
|
export default function getAllPagesOperation() {
|
|
function getAllPages({
|
|
config,
|
|
preview,
|
|
}: {
|
|
url?: string
|
|
config?: Partial<LocalConfig>
|
|
preview?: boolean
|
|
}): Promise<GetAllPagesResult> {
|
|
return Promise.resolve({
|
|
pages: [],
|
|
})
|
|
}
|
|
return getAllPages
|
|
}
|