Migrate to tsgo

This commit is contained in:
schroda
2026-03-10 01:34:36 +01:00
parent c6343e24a5
commit d8673e2307
6 changed files with 60 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { LongPressPointerHandlers, LongPressResult } from 'node_modules/use-long-press/lib/use-long-press.types';
import { LongPressPointerHandlers, LongPressResult } from 'use-long-press';
import { PopupState } from 'material-ui-popup-state/hooks';
import type { JSX } from 'react';
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';

View File

@@ -9,6 +9,7 @@
import {
createTheme as createMuiTheme,
Direction,
PaletteBackgroundChannel,
responsiveFontSizes,
Theme,
TypeBackground,
@@ -17,7 +18,6 @@ import {
import { useCallback } from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies,no-restricted-imports
import { deepmerge } from '@mui/utils';
import { PaletteBackgroundChannel } from 'node_modules/@mui/material/esm/styles/createThemeWithVars';
import { complement, hsl, parseToHsl } from 'polished';
import { HslaColor, HslColor } from 'polished/lib/types/color';
import { AppTheme } from '@/features/theme/services/AppThemes.ts';

View File

@@ -12,4 +12,11 @@ declare module '@mui/material/styles' {
interface CssThemeVariables {
enabled: true;
}
// Re-exported here because MUI doesn't include PaletteBackgroundChannel in its public API surface.
// Defined in @mui/material/esm/styles/createThemeFoundation.d.ts
export interface PaletteBackgroundChannel {
defaultChannel: string;
paperChannel: string;
}
}