typ #45
This commit is contained in:
2
is.ts
2
is.ts
@ -81,7 +81,7 @@ export function is_aug(
|
||||
return Object.keys(aug).length == 4
|
||||
&& is_msg(aug.msg, len_msg_rec)
|
||||
&& is_lim(aug.amt, lim_amt, -lim_amt)
|
||||
&& is_utc(aug.utc) && is_id(aug.sec)
|
||||
&& is_utc(aug.utc) && is_id(aug.usr)
|
||||
}
|
||||
export function is_cdt(
|
||||
cdt: Cdt,
|
||||
|
2
typ.ts
2
typ.ts
@ -28,7 +28,7 @@ export type Rec = {
|
||||
}
|
||||
export type Cdt = Rec & {
|
||||
utc: { eft: number, exp: number, agr: number },
|
||||
aug?: { msg: string, amt: number, utc: number, sec: Usr["_id"] }[],
|
||||
aug?: { msg: string, amt: number, utc: number, usr: Usr["_id"] }[],
|
||||
}
|
||||
export type Dbt = Rec & {
|
||||
rev?: { msg: string, rev: 1 | 2 | 3 | 4 | 5, utc: number },
|
||||
|
Reference in New Issue
Block a user