diff --git a/packages/components/src/font-size-picker/utils.ts b/packages/components/src/font-size-picker/utils.ts index f7338e1972bda3..02427e041993b4 100644 --- a/packages/components/src/font-size-picker/utils.ts +++ b/packages/components/src/font-size-picker/utils.ts @@ -160,7 +160,8 @@ export function getSelectedOption( ); const selectedOption = fontSizeOptions - ? // @ts-ignore @TODO fix types for fontSizeOptions. Array.find() works on the same type only. + ? // @TODO Array.find() triggers error on array types unions. It's a bug. See: https://github.com/microsoft/TypeScript/issues/44373. + // @ts-ignore fontSizeOptions.find( ( option: FontSizeSelectOption ) => option.size === value ) // @ts-ignore