Radarr/frontend
Cody Kickertz b17381f53f
fix(frontend): replace any types with proper TypeScript types (#88)
* fix(frontend): replace any types with proper TypeScript types

- AutoSuggestInput: use Data type from popper.js for modifier callback
- Tooltip: use Data type from popper.js for computeMaxSize callback
- OverlayScroller: use ComponentPropsWithoutRef<'div'> for renderView
- index.ts: use unknown[] instead of any[] for logError parameters

Improves type safety and removes eslint-disable comments.

Partially addresses #37

* fix(frontend): use ModifierFn type and string values for Popper styles

- Use ModifierFn type from popper.js for modifier callbacks
- Calculate bottom/right from offset properties (top+height, left+width)
- Convert numeric style values to strings with 'px' suffix
- Fix typo: 'botton' -> 'bottom' in AutoSuggestInput

---------

Co-authored-by: admin <admin@ardentleatherworks.com>
2025-12-21 10:38:16 -06:00
..
.vscode Updated code action fixall value for VSCode 2024-08-26 03:51:37 +03:00
build Migrate to ESLint 9 flat config 2025-12-19 14:44:01 -06:00
src fix(frontend): replace any types with proper TypeScript types (#88) 2025-12-21 10:38:16 -06:00
typings Convert Page components to TypeScript 2025-04-27 19:45:03 +03:00
.prettierignore Add Prettier to format TypeScript files 2023-04-29 22:47:02 -05:00
.prettierrc.json Add Prettier to format TypeScript files 2023-04-29 22:47:02 -05:00
.stylelintrc Add inset to stylelintrc 2023-05-13 20:29:05 +03:00
.tern-project
babel.config.js Transpile logical assignment operators with babel 2024-01-21 03:43:33 +02:00
eslint.config.mjs Migrate to ESLint 9 flat config 2025-12-19 14:44:01 -06:00
jsconfig.json jsconfig for a bit of autocompletion and intellisense 2020-08-15 12:25:28 -04:00
postcss.config.js Use autoprefixer in UI build 2024-08-19 06:22:54 +03:00
tsconfig.json UI loading improvements 2023-07-24 11:40:50 +03:00