chore: enable noUncheckedIndexedAccess, better type check (#2608)

This commit is contained in:
Stephen Zhou
2025-01-18 22:35:23 +08:00
committed by GitHub
parent f947bd1d1e
commit 2cd1b5daf9
182 changed files with 489 additions and 589 deletions
@@ -240,7 +240,7 @@ const getEntryContentAsMarkdown = async (entry: FlatEntryModel) => {
const isReadabilityReady = getReadabilityStatus()[entry.entries.id] === ReadabilityStatus.SUCCESS
const content =
(isReadabilityReady
? getReadabilityContent()[entry.entries.id].content
? getReadabilityContent()[entry.entries.id]!.content
: entry.entries.content) || ""
const [toMarkdown, toMdast, gfmTableToMarkdown] = await Promise.all([
import("mdast-util-to-markdown").then((m) => m.toMarkdown),