* introduce pako and add general packer interface * add tests for packer * use function API instead of class API for better tree shaking support * refcatoring the rollup bundle config
11 lines
252 B
TypeScript
11 lines
252 B
TypeScript
import { eventWithTime } from '../types';
|
|
|
|
export type PackFn = (event: eventWithTime) => string;
|
|
export type UnpackFn = (raw: string) => eventWithTime;
|
|
|
|
export type eventWithTimeAndPacker = eventWithTime & {
|
|
v: string;
|
|
};
|
|
|
|
export const MARK = 'v1';
|