Fix setTheme types (#6894)
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ export function getCustomTheme(themeName: string): ICustomTheme {
|
|||||||
*
|
*
|
||||||
* @param {string} theme new theme
|
* @param {string} theme new theme
|
||||||
*/
|
*/
|
||||||
export async function setTheme(theme: string): Promise<void> {
|
export async function setTheme(theme?: string): Promise<void> {
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
const themeWatcher = new ThemeWatcher();
|
const themeWatcher = new ThemeWatcher();
|
||||||
theme = themeWatcher.getEffectiveTheme();
|
theme = themeWatcher.getEffectiveTheme();
|
||||||
|
|||||||
Reference in New Issue
Block a user