Re-implementation of Patricia-Merkle Trie (#203)
* Start of trie-db re-implementation * WIP commit * More WIP * WIP, seems complete, untested * Ported trie-db operational * Add Ethereum trie tests * Use u8aConcat to construct u8a * Basic RocksDb interface * Combine engines into DB, expand tests * Update Trie with transaction wrapper * LevelDb (sync) interface * Remove unused (for now) package (compatibility) * trie-d -> trie-db-old, trie-db-ext -> trie-db * Version bump * Skip old trie tests (package to be removed) * Skip tests (fixed) * Remove non-used RocksDb spec * Skip FileFlat tests (deprecated?)
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
|
||||
type ObjectIndexed = {
|
||||
[index: string]: any
|
||||
};
|
||||
|
||||
/**
|
||||
* @name isObject
|
||||
* @signature isObject (value: any): boolean
|
||||
@@ -14,6 +18,6 @@
|
||||
* isObject({}); // => true
|
||||
* isObject('something'); // => false
|
||||
*/
|
||||
export default function isObject (value: any): value is object {
|
||||
export default function isObject (value: any): value is ObjectIndexed {
|
||||
return typeof value === 'object';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user