From 0f13f1b2b89d18ecff62b29ff00b6178d1b9770a Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Tue, 18 Oct 2022 11:04:08 +0200 Subject: [NO JIRA] Upgrade typescript --- .../src/main/js/components/controls/Select.tsx | 17 ++++++++++++----- .../js/components/controls/__tests__/Select-test.tsx | 10 ++++++++-- .../sonar-web/src/main/js/helpers/mocks/react-select.ts | 15 +++++++++++---- server/sonar-web/src/main/js/helpers/query.ts | 2 +- 4 files changed, 32 insertions(+), 12 deletions(-) (limited to 'server/sonar-web/src/main/js') diff --git a/server/sonar-web/src/main/js/components/controls/Select.tsx b/server/sonar-web/src/main/js/components/controls/Select.tsx index af43b811421..55a994fdd59 100644 --- a/server/sonar-web/src/main/js/components/controls/Select.tsx +++ b/server/sonar-web/src/main/js/components/controls/Select.tsx @@ -96,12 +96,15 @@ export function multiValueRemove< return
×
; } -export type SelectOptionProps = OptionProps; +export type SelectOptionProps = OptionProps< + T, + IsMulti +>; export const SelectOption = components.Option; /* Keeping it as a class to simplify a dozen tests */ export default class Select< - Option, + Option extends OptionTypeBase, IsMulti extends boolean = false, Group extends GroupTypeBase