Migrate to tsgo
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
7
src/lib/mui/MuiStyles.types.d.ts
vendored
7
src/lib/mui/MuiStyles.types.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user