We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b53e647 commit 2f94e8dCopy full SHA for 2f94e8d
docs/pages/typescript/index.tsx
@@ -91,7 +91,12 @@ The \`actionMeta\` parameter is optional. \`ActionMeta\` is a union that is disc
91
You can use module augmentation to add custom props to the \`Select\` prop types:
92
93
~~~jsx
94
-declare module 'react-select/dist/declarations/src/Select' {
+import type {} from 'react-select/base';
95
+// This import is necessary for module augmentation.
96
+// It allows us to extend the 'Props' interface in the 'react-select/base' module
97
+// and add our custom property 'myCustomProp' to it.
98
+
99
+declare module 'react-select/base' {
100
export interface Props<
101
Option,
102
IsMulti extends boolean,
0 commit comments