diff --git a/packages/trie/src/trie.ts b/packages/trie/src/trie.ts index 6ced72adcb..b63036cf5b 100644 --- a/packages/trie/src/trie.ts +++ b/packages/trie/src/trie.ts @@ -37,6 +37,7 @@ import type { EmbeddedNode, FoundNodeFunction, Nibbles, + Path, Proof, TrieNode, TrieOpts, @@ -47,12 +48,6 @@ import type { OnFound } from './util/asyncWalk.js' import type { BatchDBOp, DB, PutBatch } from '@ethereumjs/util' import type { Debugger } from 'debug' -interface Path { - node: TrieNode | null - remaining: Nibbles - stack: TrieNode[] -} - /** * The basic trie interface, use with `import { Trie } from '@ethereumjs/trie'`. */ diff --git a/packages/trie/src/types.ts b/packages/trie/src/types.ts index 9aa2d96e75..5928c2ee8a 100644 --- a/packages/trie/src/types.ts +++ b/packages/trie/src/types.ts @@ -20,6 +20,12 @@ export interface CommonInterface { } } +export interface Path { + node: TrieNode | null + remaining: Nibbles + stack: TrieNode[] +} + export type FoundNodeFunction = ( nodeRef: Uint8Array, node: TrieNode | null,