Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f5ef133

Browse files
authored
Fix setTheme types (#6894)
1 parent 1331e96 commit f5ef133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function getCustomTheme(themeName: string): ICustomTheme {
176176
*
177177
* @param {string} theme new theme
178178
*/
179-
export async function setTheme(theme: string): Promise<void> {
179+
export async function setTheme(theme?: string): Promise<void> {
180180
if (!theme) {
181181
const themeWatcher = new ThemeWatcher();
182182
theme = themeWatcher.getEffectiveTheme();

0 commit comments

Comments
 (0)