UNPKG

362 BTypeScriptView Raw
1import { Change } from '@neo-one/node-core';
2export declare type CacheChange = {
3 readonly type: 'add';
4 readonly model: string;
5 readonly key: string;
6 readonly value: any;
7} | {
8 readonly type: 'delete';
9 readonly model: string;
10 readonly key: string;
11};
12export declare const convertChange: (change: Change) => ReadonlyArray<CacheChange>;