mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
27 lines
426 B
TypeScript
27 lines
426 B
TypeScript
import { Product } from '@commerce/types'
|
|
import { CSVConfig } from '../index'
|
|
|
|
import mock from './mock'
|
|
|
|
interface GetAllProducts {
|
|
products: Product[]
|
|
}
|
|
|
|
interface Parameters {
|
|
variables: {
|
|
first: number
|
|
}
|
|
config: CSVConfig
|
|
preview?: boolean
|
|
}
|
|
|
|
const getAllProducts = async (
|
|
_parameters: Parameters
|
|
): Promise<GetAllProducts> => {
|
|
return {
|
|
products: [mock.full],
|
|
}
|
|
}
|
|
|
|
export default getAllProducts
|