From f5ef133f1e83ab801d28014dcc66406c74eccd40 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk <3636685+Palid@users.noreply.github.com> Date: Fri, 1 Oct 2021 16:40:04 +0200 Subject: [PATCH] Fix setTheme types (#6894) --- src/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme.ts b/src/theme.ts index 8f95f8c784..aaebe3746d 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -176,7 +176,7 @@ export function getCustomTheme(themeName: string): ICustomTheme { * * @param {string} theme new theme */ -export async function setTheme(theme: string): Promise { +export async function setTheme(theme?: string): Promise { if (!theme) { const themeWatcher = new ThemeWatcher(); theme = themeWatcher.getEffectiveTheme();