File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
special-pages/pages/duckplayer/types Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 6
6
* @module Duckplayer Messages
7
7
*/
8
8
9
+ export type ReportMetricEvent = ExceptionMetric ;
9
10
export type YouTubeError = "age-restricted" | "sign-in-required" | "no-embed" | "unknown" ;
10
11
export type PrivatePlayerMode =
11
12
| {
@@ -26,6 +27,7 @@ export interface DuckplayerMessages {
26
27
| OpenInfoNotification
27
28
| OpenSettingsNotification
28
29
| ReportInitExceptionNotification
30
+ | ReportMetricNotification
29
31
| ReportPageExceptionNotification
30
32
| ReportYouTubeErrorNotification
31
33
| TelemetryEventNotification ;
@@ -54,6 +56,19 @@ export interface ReportInitExceptionNotification {
54
56
export interface ReportInitExceptionNotify {
55
57
message : string ;
56
58
}
59
+ /**
60
+ * Generated from @see "../messages/reportMetric.notify.json"
61
+ */
62
+ export interface ReportMetricNotification {
63
+ method : "reportMetric" ;
64
+ params : ReportMetricEvent ;
65
+ }
66
+ export interface ExceptionMetric {
67
+ metricName : "exception" ;
68
+ params : {
69
+ message : string ;
70
+ } ;
71
+ }
57
72
/**
58
73
* Generated from @see "../messages/reportPageException.notify.json"
59
74
*/
You can’t perform that action at this time.
0 commit comments