mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-09 07:14:59 -05:00
Compare commits
3 Commits
f223499cbd
...
232e41e751
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
232e41e751 | ||
|
|
9026c69ca7 | ||
|
|
9c347ca7c1 |
@ -34,6 +34,18 @@ import * as React from "react";
|
||||
import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes";
|
||||
import { type ThemeProviderProps } from "next-themes/dist/types";
|
||||
|
||||
declare global {
|
||||
interface Document {
|
||||
startViewTransition(updateCallback: () => void):
|
||||
| {
|
||||
finished: Promise<void>;
|
||||
ready: Promise<void>;
|
||||
updateCallbackDone: Promise<void>;
|
||||
}
|
||||
| undefined;
|
||||
}
|
||||
}
|
||||
|
||||
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||
const [mounted, setMounted] = React.useState(false);
|
||||
|
||||
@ -48,7 +60,7 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||
|
||||
interface UseThemeTransitionResult {
|
||||
theme: string | undefined;
|
||||
changeTheme: (changeTheme: string) => () => void;
|
||||
changeTheme: (changeTheme: string) => void;
|
||||
mounted: boolean;
|
||||
}
|
||||
|
||||
|
||||
@ -8037,9 +8037,9 @@ typed-array-length@^1.0.6:
|
||||
possible-typed-array-names "^1.0.0"
|
||||
|
||||
typescript@^5:
|
||||
version "5.4.5"
|
||||
resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz"
|
||||
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
|
||||
version "5.6.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
|
||||
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
|
||||
|
||||
ufo@^1.5.3:
|
||||
version "1.5.4"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user