Skip to content

Commit

Permalink
fix: allow unknown activity params
Browse files Browse the repository at this point in the history
  • Loading branch information
orionmiz committed Oct 17, 2023
1 parent a41cc8a commit e11bf7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/plugin-history-sync/src/RoutesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Route<K> = {
path: string;
decode?: (
params: Record<string, string>,
) => K extends ActivityComponentType<infer U> ? U : never;
) => K extends ActivityComponentType<infer U> ? U : {};
};

export type RouteLike<T> = string | string[] | Route<T> | Route<T>[];
Expand Down

0 comments on commit e11bf7a

Please sign in to comment.