new style
This commit is contained in:
9
src/env.d.ts
vendored
9
src/env.d.ts
vendored
@@ -7,4 +7,13 @@ type Runtime = import("@astrojs/cloudflare").Runtime<Env>;
|
||||
|
||||
declare namespace App {
|
||||
interface Locals extends Runtime {}
|
||||
}
|
||||
|
||||
interface Window {
|
||||
theme: {
|
||||
setTheme: (theme: "auto" | "dark" | "light") => void;
|
||||
getTheme: () => "auto" | "dark" | "light";
|
||||
getSystemTheme: () => "light" | "dark";
|
||||
getDefaultTheme: () => "auto" | "dark" | "light";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user