Skip to content

Commit

Permalink
fix(types): Fix available sys query params
Browse files Browse the repository at this point in the history
  • Loading branch information
andreascful committed Mar 10, 2022
1 parent a0ee0c1 commit 3c80044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types/query/query.ts
Expand Up @@ -40,7 +40,7 @@ export type EntryFieldsQueries<Fields extends FieldsType = FieldsType> =
// TODO: create-contentful-api complained about non-optional fields when initialized with {}
export type EntriesQueries<Fields extends FieldsType = FieldsType> = Partial<
EntryFieldsQueries<Fields> &
SysQueries<EntrySys> &
SysQueries<Pick<EntrySys, 'createdAt' | 'updatedAt' | 'revision' | 'id' | 'type'>> &
FixedQueryOptions &
FixedPagedOptions & { content_type?: string } & Record<string, any> & {
resolveLinks?: never
Expand All @@ -60,7 +60,7 @@ export type AssetFieldsQueries<Fields extends FieldsType = FieldsType> =

export type AssetQueries<Fields extends FieldsType = FieldsType> = Partial<
AssetFieldsQueries<Fields> &
SysQueries<AssetSys> &
SysQueries<Pick<AssetSys, 'createdAt' | 'updatedAt' | 'revision' | 'id' | 'type'>> &
FixedQueryOptions &
FixedPagedOptions & { mimetype_group?: AssetMimeType } & Record<string, any>
>

0 comments on commit 3c80044

Please sign in to comment.