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