File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/qwik-router/src/runtime/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,8 @@ interface StartViewTransitionOptions {
4
4
types ?: string [ ] | null ;
5
5
update ?: ViewTransitionUpdateCallback | null ;
6
6
}
7
- interface ViewTransitionUpdateCallback {
8
- ( ) : any ;
9
- }
10
7
11
- interface DocumentViewTransition extends Document {
8
+ interface DocumentViewTransition extends Omit < Document , 'startViewTransition' > {
12
9
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
13
10
startViewTransition (
14
11
callbackOptions ?: ViewTransitionUpdateCallback | StartViewTransitionOptions
@@ -43,6 +40,7 @@ export const startViewTransition = (params: StartViewTransitionOptions) => {
43
40
}
44
41
const event = new CustomEvent ( 'qviewTransition' , { detail : transition } ) ;
45
42
document . dispatchEvent ( event ) ;
43
+ return transition ;
46
44
} else {
47
45
params . update ?.( ) ;
48
46
}
You can’t perform that action at this time.
0 commit comments