Skip to content

Commit 64a2705

Browse files
committed
Fix module augmentation and install latest RS
1 parent 3d9c4fc commit 64a2705

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"sideEffects": false,
4646
"types": "dist/types/index.d.ts",
4747
"dependencies": {
48-
"react-select": "5.7.0"
48+
"react-select": "5.7.7"
4949
},
5050
"peerDependencies": {
5151
"@chakra-ui/form-control": "^2.0.0",

src/module-augmentation.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars */
22
import type { SystemStyleObject } from "@chakra-ui/system";
33
import type { GroupBase, StylesConfig, ThemeConfig } from "react-select";
4+
import type {} from "react-select/base";
45
import type {
56
ChakraStylesConfig,
67
SelectedOptionStyle,
@@ -15,7 +16,7 @@ import type {
1516
*
1617
* @see {@link https://react-select.com/typescript#custom-select-props}
1718
*/
18-
declare module "react-select/dist/declarations/src/Select" {
19+
declare module "react-select/base" {
1920
export interface Props<
2021
Option,
2122
IsMulti extends boolean,
@@ -195,9 +196,7 @@ declare module "react-select/dist/declarations/src/Select" {
195196
*/
196197
theme?: ThemeConfig;
197198
}
198-
}
199199

200-
declare module "react-select/dist/declarations/src/components/MultiValue" {
201200
export interface MultiValueProps<
202201
Option,
203202
IsMulti extends boolean,
@@ -222,9 +221,7 @@ declare module "react-select/dist/declarations/src/components/MultiValue" {
222221
isFocused: boolean;
223222
sx: SystemStyleObject;
224223
}
225-
}
226224

227-
declare module "react-select/dist/declarations/src/components/indicators" {
228225
export interface LoadingIndicatorProps<
229226
Option,
230227
IsMulti extends boolean,

0 commit comments

Comments
 (0)