Skip to content

Commit

Permalink
Fixes broken transition types (#10392)
Browse files Browse the repository at this point in the history
* Fixes broken transition types

* adds changeset

* adds changeset
  • Loading branch information
martrapp authored Mar 11, 2024
1 parent 9667ee9 commit 02aeb01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-penguins-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fixes broken types for some functions of `astro:transitions/client`.
8 changes: 3 additions & 5 deletions packages/astro/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ declare module 'astro:transitions' {
declare module 'astro:transitions/client' {
type TransitionRouterModule = typeof import('./dist/virtual-modules/transitions-router.js');
export const navigate: TransitionRouterModule['navigate'];

type TransitionUtilModule = typeof import('./dist/virtual-modules/transitions-util.js');
export const supportsViewTransitions: TransitionUtilModule['supportsViewTransitions'];
export const getFallback: TransitionUtilModule['getFallback'];
export const transitionEnabledOnThisPage: TransitionUtilModule['transitionEnabledOnThisPage'];
export const supportsViewTransitions: TransitionRouterModule['supportsViewTransitions'];
export const getFallback: TransitionRouterModule['getFallback'];
export const transitionEnabledOnThisPage: TransitionRouterModule['transitionEnabledOnThisPage'];

export type Fallback = import('./dist/virtual-modules/transitions-types.js').Fallback;
export type Direction = import('./dist/virtual-modules/transitions-types.ts').Direction;
Expand Down

0 comments on commit 02aeb01

Please sign in to comment.