mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-09 07:03:38 +00:00
feat: Emit custom event when theme changes (#723)
* Emit custom event when theme changes * Type themechange custom event * Update darkmode docs
This commit is contained in:
parent
1ce12fc1fc
commit
0a76707062
3 changed files with 22 additions and 7 deletions
1
index.d.ts
vendored
1
index.d.ts
vendored
|
@ -6,6 +6,7 @@ declare module "*.scss" {
|
|||
// dom custom event
|
||||
interface CustomEventMap {
|
||||
nav: CustomEvent<{ url: FullSlug }>
|
||||
themechange: CustomEvent<{ theme: "light" | "dark" }>
|
||||
}
|
||||
|
||||
declare const fetchData: Promise<ContentIndex>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue