You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<details><summary>Polyfill Global Window Types</summary>
202
202
203
203
See [`@types/dom-navigation`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/dom-navigation/package.json) for a standardised type definition for the Navigation API
204
-
which can be utilised alongside this polyfill.
204
+
which can be utilised alongside this polyfill.
205
205
206
206
```bash
207
207
yarn add --dev @types/dom-navigation
@@ -219,4 +219,32 @@ This should then be included as a type in your `tsconfig.json`:
219
219
}
220
220
```
221
221
222
-
</details>
222
+
</details>
223
+
224
+
<details><summary>Polyfill Serializer</summary>
225
+
226
+
You may want to set a custom serializer state stored in history
227
+
228
+
The default serializer is [JSON](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON)
229
+
230
+
In the past, a [structured clone like serializer](https://www.npmjs.com/package/@ungap/structured-clone) was used. This may be useful for you if
231
+
you're using native types rather than just JSON compatible values.
232
+
233
+
An example of making use of a custom serializer with the polyfill:
0 commit comments