Move core files into new folder
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
|
||||
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
||||
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
||||
import { ParseKeys } from 'i18next';
|
||||
import { Location } from 'react-router-dom';
|
||||
import {
|
||||
GetChaptersReaderQuery,
|
||||
GetServerSettingsQuery,
|
||||
@@ -23,16 +21,7 @@ import {
|
||||
} from '@/lib/graphql/generated/graphql.ts';
|
||||
import { AppTheme } from '@/lib/ui/AppThemes.ts';
|
||||
import { SortSettings } from '@/screens/Migration.types.ts';
|
||||
|
||||
type GenericLocation<State = any> = Omit<Location, 'state'> & { state?: State };
|
||||
|
||||
declare module 'react-router-dom' {
|
||||
export function useParams<Params extends { [K in keyof Params]: string } = {}>(): Params;
|
||||
|
||||
export function useLocation<State = any>(): GenericLocation<State>;
|
||||
}
|
||||
|
||||
export type TranslationKey = ParseKeys;
|
||||
import { NullAndUndefined, TranslationKey } from '@/Base.types.ts';
|
||||
|
||||
export interface IPos {
|
||||
type: 'selectState' | 'textState' | 'checkBoxState' | 'triState' | 'sortState';
|
||||
@@ -125,11 +114,6 @@ export interface IReaderSettings {
|
||||
readerWidth: number;
|
||||
}
|
||||
|
||||
export enum ChapterOffset {
|
||||
PREV = -1,
|
||||
NEXT = 1,
|
||||
}
|
||||
|
||||
export type MetadataDownloadSettings = {
|
||||
deleteChaptersManuallyMarkedRead: boolean;
|
||||
deleteChaptersWhileReading: number;
|
||||
@@ -243,8 +227,6 @@ export interface NavbarItem {
|
||||
show: 'mobile' | 'desktop' | 'both';
|
||||
}
|
||||
|
||||
export type NullAndUndefined<T> = T | null | undefined;
|
||||
|
||||
export type ChapterSortMode = 'fetchedAt' | 'source' | 'chapterNumber' | 'uploadedAt';
|
||||
|
||||
export interface ChapterListOptions {
|
||||
|
||||
Reference in New Issue
Block a user