Rename features types file

This commit is contained in:
jeffvli 2024-03-05 14:05:01 -08:00
parent e7b2f30718
commit a9315be259
8 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ import packageJson from '../../../../package.json';
import { z } from 'zod';
import { JFSongListSort, JFSortOrder } from '/@/renderer/api/jellyfin.types';
import isElectron from 'is-electron';
import { ServerFeatures } from '/@/renderer/api/features.types';
import { ServerFeatures } from '/@/renderer/api/features-types';
const formatCommaDelimitedString = (value: string[]) => {
return value.join(',');

View File

@ -49,7 +49,7 @@ import {
ServerInfoArgs,
} from '../types';
import { hasFeature } from '/@/renderer/api/utils';
import { ServerFeature, ServerFeatures } from '/@/renderer/api/features.types';
import { ServerFeature, ServerFeatures } from '/@/renderer/api/features-types';
import { SubsonicExtensions } from '/@/renderer/api/subsonic/subsonic-types';
const authenticate = async (

View File

@ -29,7 +29,7 @@ import {
Song,
} from '/@/renderer/api/types';
import { randomString } from '/@/renderer/utils';
import { ServerFeatures } from '/@/renderer/api/features.types';
import { ServerFeatures } from '/@/renderer/api/features-types';
const authenticate = async (
url: string,

View File

@ -1,4 +1,5 @@
import { z } from 'zod';
import { ServerFeatures } from './features-types';
import { jfType } from './jellyfin/jellyfin-types';
import {
JFSortOrder,
@ -20,7 +21,6 @@ import {
NDUserListSort,
NDGenreListSort,
} from './navidrome.types';
import { ServerFeatures } from '/@/renderer/api/features.types';
export enum LibraryItem {
ALBUM = 'album',

View File

@ -3,7 +3,7 @@ import { z } from 'zod';
import { toast } from '/@/renderer/components';
import { useAuthStore } from '/@/renderer/store';
import { ServerListItem } from '/@/renderer/api/types';
import { ServerFeature } from '/@/renderer/api/features.types';
import { ServerFeature } from '/@/renderer/api/features-types';
// Since ts-rest client returns a strict response type, we need to add the headers to the body object
export const resultWithHeaders = <ItemType extends z.ZodTypeAny>(itemSchema: ItemType) => {

View File

@ -15,7 +15,7 @@ import { queryKeys } from '/@/renderer/api/query-keys';
import { api } from '/@/renderer/api';
import isElectron from 'is-electron';
import { hasFeature } from '/@/renderer/api/utils';
import { ServerFeature } from '/@/renderer/api/features.types';
import { ServerFeature } from '/@/renderer/api/features-types';
const lyricsIpc = isElectron() ? window.electron.lyrics : null;

View File

@ -12,7 +12,7 @@ import { convertQueryGroupToNDQuery } from '/@/renderer/features/playlists/utils
import { useCurrentServer } from '/@/renderer/store';
import { useTranslation } from 'react-i18next';
import { hasFeature } from '/@/renderer/api/utils';
import { ServerFeature } from '/@/renderer/api/features.types';
import { ServerFeature } from '/@/renderer/api/features-types';
interface CreatePlaylistFormProps {
onCancel: () => void;