improve record method and bump 0.2.0

This commit is contained in:
Yanzhen Yu
2018-10-11 17:30:33 +08:00
parent 215b2b319b
commit c07cce74bf
3 changed files with 84 additions and 79 deletions

View File

@@ -85,7 +85,7 @@ export type eventWithTime = event & {
};
export type recordOptions = {
emit: (e: eventWithTime) => void;
emit?: (e: eventWithTime) => void;
};
export type observerParam = {