Add type definition for all props

This commit is contained in:
Ariful Alam
2022-03-26 18:26:04 +06:00
parent 4cb107e168
commit 2743dee9aa
3 changed files with 21 additions and 6 deletions

19
types/index.d.ts vendored
View File

@@ -135,9 +135,24 @@ export interface ThemeConfig {
defaultTheme: string;
/**
* Snippet Version
* Hides the switch in the navbar
*/
snippetVersion: number;
disableSwitch: boolean;
/**
* Should use the prefers-color-scheme media-query
*/
respectPrefersColorScheme: boolean;
/**
* Available themes
*/
themes: Array<string>;
/**
* Custom theme
*/
customTheme: object;
}
export interface Config {