Skip to content

Commit

Permalink
fix(plugin-redirects): make fields optional type in overrides (#7061)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpopus committed Jul 8, 2024
1 parent c2022f6 commit b7acfe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-redirects/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export type FieldsOverride = (args: { defaultFields: Field[] }) => Field[]

export type RedirectsPluginConfig = {
collections?: string[]
overrides?: Partial<Omit<CollectionConfig, 'fields'>> & { fields: FieldsOverride }
overrides?: Partial<Omit<CollectionConfig, 'fields'>> & { fields?: FieldsOverride }
}

0 comments on commit b7acfe5

Please sign in to comment.