Skip to content

Commit

Permalink
refactor(imt): define export type IMTNode instead of any (#366)
Browse files Browse the repository at this point in the history
refactor(imt): define export type IMTNode as number | string | bigint instead of any

re #339
  • Loading branch information
0x471 authored Jan 17, 2025
1 parent 31c83b6 commit 34c781c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/imt/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* It represents a node of the tree, which can be any value.
* It represents a node of the tree, which can be a number, a string or a bigint.
*/
export type IMTNode = any
export type IMTNode = number | string | bigint

/**
* The hash function is used to compute the nodes of the tree.
Expand Down

0 comments on commit 34c781c

Please sign in to comment.