From e97d45c04bbc91e9e2ff9509f0d9c16fc4e4234e Mon Sep 17 00:00:00 2001 From: Jasper Van Gestel Date: Thu, 13 Jan 2022 18:21:18 +0100 Subject: [PATCH] Make 3rd argument of CommonProps['setValue'] optional (#4908) Co-authored-by: Nathan Bierema --- .changeset/stale-baboons-float.md | 5 +++++ packages/react-select/src/types.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/stale-baboons-float.md 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; }