File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -694,14 +694,15 @@ interface Metric {
694
694
entries: (PerformanceEntry | LayoutShift | FirstInputPolyfillEntry | NavigationTimingPolyfillEntry )[];
695
695
696
696
/**
697
- * The type of navigation
697
+ * The type of navigation.
698
698
*
699
- * Navigation Timing API (or `undefined` if the browser doesn't
700
- * support that API).
701
- * For pages that are restored from the bfcache, this value will
702
- * be 'back-forward-cache'.
703
- * For pages that are restored after being discarded, this value will
704
- * be 'restore'.
699
+ * This will be the value returned by the Navigation Timing API (or
700
+ * `undefined` if the browser doesn't support that API), with the following
701
+ * exceptions:
702
+ * - 'back-forward-cache': for pages that are restored from the bfcache.
703
+ * - 'prerender': for pages that were prerendered.
704
+ * - 'restore': for pages that were discarded by the browser and then
705
+ * restored by the user.
705
706
*/
706
707
navigationType: ' navigate' | ' reload' | ' back-forward' | ' back-forward-cache' | ' prerender' | ' restore' ;
707
708
}
Original file line number Diff line number Diff line change @@ -59,11 +59,15 @@ export interface Metric {
59
59
entries : ( PerformanceEntry | LayoutShift | FirstInputPolyfillEntry | NavigationTimingPolyfillEntry ) [ ] ;
60
60
61
61
/**
62
- * The type of navigation
62
+ * The type of navigation.
63
63
*
64
- * Navigation Timing API (or `undefined` if the browser doesn't
65
- * support that API). For pages that are restored from the bfcache, this
66
- * value will be 'back-forward-cache'.
64
+ * This will be the value returned by the Navigation Timing API (or
65
+ * `undefined` if the browser doesn't support that API), with the following
66
+ * exceptions:
67
+ * - 'back-forward-cache': for pages that are restored from the bfcache.
68
+ * - 'prerender': for pages that were prerendered.
69
+ * - 'restore': for pages that were discarded by the browser and then
70
+ * restored by the user.
67
71
*/
68
72
navigationType : 'navigate' | 'reload' | 'back-forward' | 'back-forward-cache' | 'prerender' | 'restore' ;
69
73
}
You can’t perform that action at this time.
0 commit comments