Skip to content

Commit

Permalink
fix: declare explicit return type for getNode
Browse files Browse the repository at this point in the history
  • Loading branch information
panukettu committed Jul 2, 2024
1 parent 21daf8f commit 33dad05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/history-utility/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function proxyWithHistory<V>(
* @param index
* @returns historyNode
*/
getNode: (index: number) => {
getNode: (index: number): HistoryNode<V> | undefined => {
const node = proxyObject.history.nodes[index];
return node
? { ...node, snapshot: proxyObject.clone(node.snapshot) }
Expand Down

0 comments on commit 33dad05

Please sign in to comment.