mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
bug: fix type
This commit is contained in:
@@ -151,13 +151,13 @@ export type Operations<P extends APIProvider> = {
|
|||||||
|
|
||||||
|
|
||||||
getAllBlogs: {
|
getAllBlogs: {
|
||||||
<T extends GetFeaturedOperation>(opts: {
|
<T extends GetAllBlogsOperation>(opts: {
|
||||||
variables?: T['variables']
|
variables?: T['variables']
|
||||||
config?: P['config']
|
config?: P['config']
|
||||||
preview?: boolean
|
preview?: boolean
|
||||||
}): Promise<T['data']>
|
}): Promise<T['data']>
|
||||||
|
|
||||||
<T extends GetFeaturedOperation>(
|
<T extends GetAllBlogsOperation>(
|
||||||
opts: {
|
opts: {
|
||||||
variables?: T['variables']
|
variables?: T['variables']
|
||||||
config?: P['config']
|
config?: P['config']
|
||||||
@@ -167,13 +167,13 @@ export type Operations<P extends APIProvider> = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFeaturedBlog: {
|
getFeaturedBlog: {
|
||||||
<T extends GetAllBlogsOperation>(opts: {
|
<T extends GetFeaturedOperation>(opts: {
|
||||||
variables?: T['variables']
|
variables?: T['variables']
|
||||||
config?: P['config']
|
config?: P['config']
|
||||||
preview?: boolean
|
preview?: boolean
|
||||||
}): Promise<T['data']>
|
}): Promise<T['data']>
|
||||||
|
|
||||||
<T extends GetAllBlogsOperation>(
|
<T extends GetFeaturedOperation>(
|
||||||
opts: {
|
opts: {
|
||||||
variables?: T['variables']
|
variables?: T['variables']
|
||||||
config?: P['config']
|
config?: P['config']
|
||||||
|
@@ -4,7 +4,7 @@ import { Asset, BlogTranslation, Maybe, Product } from './../../vendure/schema.d
|
|||||||
export type BlogList = Node &{
|
export type BlogList = Node &{
|
||||||
id: string
|
id: string
|
||||||
featuredAsset?: Maybe<Asset>
|
featuredAsset?: Maybe<Asset>
|
||||||
isHidden:Boolean
|
isPublic:Boolean
|
||||||
translations: Array<BlogTranslation>
|
translations: Array<BlogTranslation>
|
||||||
authorName: string
|
authorName: string
|
||||||
authorAvatarAsset:Array<Asset>
|
authorAvatarAsset:Array<Asset>
|
||||||
|
Reference in New Issue
Block a user