Skip to content

Commit

Permalink
fix(types): make disableNew optional for reference types
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge authored and rexxars committed Sep 14, 2022
1 parent 5b9fdb9 commit 6627358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/types/src/reference/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ export type ReferenceFilterOptions =
| {filter: ReferenceFilterResolver}
| {filter: string; filterParams?: Record<string, unknown>}

export type ReferenceOptions = {disableNew: boolean} & ReferenceFilterOptions
export type ReferenceOptions = {disableNew?: boolean} & ReferenceFilterOptions

0 comments on commit 6627358

Please sign in to comment.