fix: fix types for linking options

This commit is contained in:
Satyajit Sahoo
2020-05-15 18:37:58 +02:00
parent c481748f00
commit d14f38b80a

View File

@@ -39,7 +39,9 @@ export type LinkingOptions = {
* }
* ```
*/
config?: Parameters<typeof getStateFromPathDefault>[1];
config?:
| Parameters<typeof getStateFromPathDefault>[1]
| Parameters<typeof getPathFromStateDefault>[1];
/**
* Custom function to parse the URL to a valid navigation state (advanced).
* Only applicable on Web.