Skip to content

Commit

Permalink
Monomorphize pureHistoryApply()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Hemphill committed Oct 14, 2024
1 parent 617740b commit 372c340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/randomizer/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export type SetHistory = Dispatch<
SetStateAction<History<Partial<ScriptState>>>
>;

export function pureHistoryApply<T>(
setHistory: Dispatch<SetStateAction<History<Partial<T>>>>,
a: PureHistoryAction<Partial<T>>,
export function pureHistoryApply(
setHistory: SetHistory,
a: PureHistoryAction<Partial<ScriptState>>,
) {
setHistory((h) => historyStep(h, a).h);
}
Expand Down

0 comments on commit 372c340

Please sign in to comment.