diff --git a/.changeset/stale-baboons-float.md b/.changeset/stale-baboons-float.md new file mode 100644 index 0000000000..51ffe7b741 --- /dev/null +++ b/.changeset/stale-baboons-float.md @@ -0,0 +1,5 @@ +--- +'react-select': patch +--- + +Make 3rd argument of CommonProps['setValue'] optional. diff --git a/packages/react-select/src/types.ts b/packages/react-select/src/types.ts index 1e08ede1ed..2926a715ba 100644 --- a/packages/react-select/src/types.ts +++ b/packages/react-select/src/types.ts @@ -89,7 +89,7 @@ export interface CommonProps< setValue: ( newValue: OnChangeValue, action: SetValueAction, - option: Option + option?: Option ) => void; theme: Theme; }