File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed
src/main/scala/org/scalajs/dom/experimental/push Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ trait PushSubscription extends js.Object {
86
86
*
87
87
* MDN
88
88
*/
89
- val expirationTime : Double = js.native
89
+ val expirationTime : java.lang. Double = js.native
90
90
91
91
/**
92
92
* The options read-only property of the PushSubscription interface is an object containing
@@ -115,7 +115,39 @@ trait PushSubscription extends js.Object {
115
115
*
116
116
* MDN
117
117
*/
118
- def toJSON (): js.Dictionary [js.Any ] = js.native
118
+ def toJSON (): PushSubscriptionJSON = js.native
119
+ }
120
+
121
+ /**
122
+ * A PushSubscriptionJSON dictionary represents the JSON type of a PushSubscription. In ECMAScript this can
123
+ * be converted into a JSON string through the JSON.stringify function.
124
+ *
125
+ * MDN
126
+ */
127
+ @ js.native
128
+ trait PushSubscriptionJSON extends js.Object {
129
+
130
+ /**
131
+ * The endpoint contains the underlying value of the endpoint attribute.
132
+ *
133
+ * MDN
134
+ */
135
+ val endpoint : String = js.native
136
+
137
+ /**
138
+ * The endpoint contains the underlying value of the endpoint attribute.
139
+ *
140
+ * MDN
141
+ */
142
+ val expirationTime : java.lang.Double = js.native
143
+
144
+ /**
145
+ * The keys record contains an entry for each of the supported PushEncryptionKeyName entries to the URL-safe
146
+ * base64 encoded representation [RFC4648] of its value.
147
+ *
148
+ * MDN
149
+ */
150
+ val keys : js.Dictionary [String ] = js.native
119
151
}
120
152
121
153
/**
You can’t perform that action at this time.
0 commit comments