From 53611a1cec7e7f0e55a647cba72dd2e60c1296c0 Mon Sep 17 00:00:00 2001 From: Tima Gixe Date: Fri, 24 Jan 2025 17:55:37 +0200 Subject: [PATCH] docs: fix typescript error on module augmentation Error: All declarations of 'Props' must have identical type parameters.(2428) --- docs/pages/typescript/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pages/typescript/index.tsx b/docs/pages/typescript/index.tsx index f296b03e20..f88dc2b781 100644 --- a/docs/pages/typescript/index.tsx +++ b/docs/pages/typescript/index.tsx @@ -91,6 +91,7 @@ The \`actionMeta\` parameter is optional. \`ActionMeta\` is a union that is disc You can use module augmentation to add custom props to the \`Select\` prop types: ~~~jsx +import type { GroupBase } from 'react-select'; import type {} from 'react-select/base'; // This import is necessary for module augmentation. // It allows us to extend the 'Props' interface in the 'react-select/base' module