fix: linter issues
This commit is contained in:
@@ -3,12 +3,12 @@ import { toast } from 'sonner';
|
||||
import { Plugin } from '@/types/plugin';
|
||||
import { createEpub, downloadBlob } from '@/lib/epub';
|
||||
|
||||
interface UseEpubExportOptions {
|
||||
type UseEpubExportOptions = {
|
||||
plugin: Plugin.PluginBase | null;
|
||||
sourceNovel: (Plugin.SourceNovel & { totalPages?: number }) | undefined;
|
||||
chapters: Plugin.ChapterItem[];
|
||||
novelPath: string;
|
||||
}
|
||||
};
|
||||
|
||||
export function useEpubExport({
|
||||
plugin,
|
||||
@@ -69,11 +69,12 @@ export function useEpubExport({
|
||||
description: `0/${allChapters.length} chapters processed`,
|
||||
});
|
||||
|
||||
const chapterContents: Array<{
|
||||
type Chapter = {
|
||||
title: string;
|
||||
content: string;
|
||||
path: string;
|
||||
}> = [];
|
||||
};
|
||||
const chapterContents: Chapter[] = [];
|
||||
|
||||
for (let i = 0; i < allChapters.length; i++) {
|
||||
const chapter = allChapters[i];
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { Plugin } from '@/types/plugin';
|
||||
|
||||
interface UsePluginCustomAssetsReturn {
|
||||
type UsePluginCustomAssetsReturn = {
|
||||
customCSSLoaded: boolean;
|
||||
customJSLoaded: boolean;
|
||||
customCSSError: boolean;
|
||||
customJSError: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Custom hook to load and manage plugin custom CSS and JS assets
|
||||
|
||||
Reference in New Issue
Block a user