mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
chore(collection/presentation): fix typecheck
This commit is contained in:
@@ -50,7 +50,7 @@ export function getPresentationThemes() {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function loadPresentationTheme(name: keyof typeof themes) {
|
export async function loadPresentationTheme(name: keyof typeof themes | string) {
|
||||||
let theme = themes[name];
|
let theme = themes[name];
|
||||||
if (!theme) theme = themes[DEFAULT_THEME];
|
if (!theme) theme = themes[DEFAULT_THEME];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user