type StorageTarget = StorageSource & { history?: StorageSource[], swap: () => void }
packages / core / src / types.ts