UNPKG

@magnetarjs/types

Version:
9 lines (8 loc) 265 B
import { isPlainObject } from 'is-what'; export function isCacheStoreAddedResult(result) { return (isPlainObject(result) && !!result['id'] && !!result['current'] && !!result['diffApplied'] && Object.keys(result).length === 3); }