mirror of
https://github.com/vercel/commerce.git
synced 2025-07-28 20:51:23 +00:00
Create needed files
This commit is contained in:
15
framework/ordercloud/api/operations/get-page.ts
Normal file
15
framework/ordercloud/api/operations/get-page.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { GetPageOperation } from "@commerce/types/page"
|
||||
|
||||
export type Page = any
|
||||
export type GetPageResult = { page?: Page }
|
||||
|
||||
export type PageVariables = {
|
||||
id: number
|
||||
}
|
||||
|
||||
export default function getPageOperation() {
|
||||
async function getPage<T extends GetPageOperation>(): Promise<T['data']> {
|
||||
return Promise.resolve({})
|
||||
}
|
||||
return getPage
|
||||
}
|
Reference in New Issue
Block a user