We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c83fa76 commit 8eb426cCopy full SHA for 8eb426c
1 file changed
extensions/plugin-history-sync/src/historySyncPlugin.tsx
@@ -25,6 +25,8 @@ type ConfigHistorySync = {
25
declare module "@stackflow/config" {
26
interface ActivityDefinition<ActivityName extends string> {
27
path: string;
28
+ decode?: (params: Record<string, string>) => Record<string, unknown>;
29
+ encode?: (params: Record<string, unknown>) => Record<string, string>;
30
}
31
32
interface Config<T extends ActivityDefinition<string>> {
@@ -74,7 +76,11 @@ export function historySyncPlugin<
74
76
: options.config.activities.reduce(
75
77
(acc, a) => ({
78
...acc,
- [a.name]: a.path,
79
+ [a.name]: {
80
+ path: a.path,
81
+ decode: a.decode,
82
+ encode: a.encode,
83
+ },
84
}),
85
{},
86
);
0 commit comments