Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(types): be more specific in various places
- IStateTreeNode is the type passed to onSnapshot and applySnapshot - snapshot from onSnapshot _should_ always have string keys - Storage.getItem should always return a string or object - add a typeguard here to properly ensure behavior similar to pattern-matching - my first typeguard woo! - be more general than just checking `jsonify` as we can't have a string snapshot anyway (though checking `jsonify` might be more efficient than `isString`)
- Loading branch information