Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client/print): fix typecheck issues
Elian Doranacae069b9eb0
diff --git a/_regroup/spec/support/etapi.ts b/_regroup/spec/support/etapi.tsindex 307868d7d9..b32ba38e76 100644--- a/_regroup/spec/support/etapi.ts+++ b/_regroup/spec/support/etapi.ts@@ -1,4 +1,3 @@-import type child_process from "child_process";import { describe, beforeAll, afterAll } from "vitest";let etapiAuthToken: string | undefined;@@ -12,8 +11,6 @@ type SpecDefinitionsFunc = () => void;function describeEtapi(description: string, specDefinitions: SpecDefinitionsFunc): void {describe(description, () => {- let appProcess: ReturnType<typeof child_process.spawn>;-beforeAll(async () => {});afterAll(() => {});diff --git a/apps/client/src/widgets/collections/NoteList.tsx b/apps/client/src/widgets/collections/NoteList.tsxindex f9c9ba5d1c..76deeeffe3 100644--- a/apps/client/src/widgets/collections/NoteList.tsx+++ b/apps/client/src/widgets/collections/NoteList.tsx@@ -23,7 +23,7 @@ interface NoteListProps {isEnabled: boolean;ntxId: string | null | undefined;media: ViewModeMedia;- onReady: () => void;+ onReady?: () => void;}export default function NoteList<T extends object>(props: Pick<NoteListProps, "displayOnlyCollections" | "media" | "onReady">) {@@ -36,7 +36,7 @@ export function SearchNoteList<T extends object>(props: Omit<NoteListProps, "isEreturn <CustomNoteList {...props} isEnabled={true} />}-export function CustomNoteList<T extends object>({ note, isEnabled: shouldEnable, notePath, highlightedTokens, displayOnlyCollections, ntxId, ...restProps }: NoteListProps) {+export function CustomNoteList<T extends object>({ note, isEnabled: shouldEnable, notePath, highlightedTokens, displayOnlyCollections, ntxId, onReady, ...restProps }: NoteListProps) {const widgetRef = useRef<HTMLDivElement>(null);const viewType = useNoteViewType(note);const noteIds = useNoteIds(note, viewType, ntxId);@@ -79,6 +79,7 @@ export function CustomNoteList<T extends object>({ note, isEnabled: shouldEnablehighlightedTokens,viewConfig: viewModeConfig[0],saveConfig: viewModeConfig[1],+ onReady: onReady ?? (() => {}),...restProps}}