Compare commits

...

3 Commits

Author SHA1 Message Date
dependabot[bot]
232e41e751
Merge 9c347ca7c1c8d2bc34c2431b6dbca1af45a7a5ad into 9026c69ca7c1bb2630304a0da3d8ef7e070bf67f 2024-11-21 04:45:07 +00:00
dvelo
9026c69ca7 fix: change types 2024-11-17 21:17:12 -06:00
dependabot[bot]
9c347ca7c1
build(deps-dev): bump typescript from 5.4.5 to 5.6.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.4.5 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.4.5...v5.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 02:59:27 +00:00
2 changed files with 16 additions and 4 deletions

@ -34,6 +34,18 @@ import * as React from "react";
import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes"; import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types"; 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) { export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
const [mounted, setMounted] = React.useState(false); const [mounted, setMounted] = React.useState(false);
@ -48,7 +60,7 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
interface UseThemeTransitionResult { interface UseThemeTransitionResult {
theme: string | undefined; theme: string | undefined;
changeTheme: (changeTheme: string) => () => void; changeTheme: (changeTheme: string) => void;
mounted: boolean; mounted: boolean;
} }

@ -8037,9 +8037,9 @@ typed-array-length@^1.0.6:
possible-typed-array-names "^1.0.0" possible-typed-array-names "^1.0.0"
typescript@^5: typescript@^5:
version "5.4.5" version "5.6.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
ufo@^1.5.3: ufo@^1.5.3:
version "1.5.4" version "1.5.4"