-type
This commit is contained in:
parent
318f544184
commit
7eef3f57d2
@ -467,11 +467,11 @@ export type ParsedTombstone =
|
|||||||
}
|
}
|
||||||
| { tag: TombstoneTag.DeleteRefund; refundGroupId: string };
|
| { tag: TombstoneTag.DeleteRefund; refundGroupId: string };
|
||||||
|
|
||||||
export function constructTombstone(p: ParsedTombstone): string {
|
export function constructTombstone(p: ParsedTombstone): TombstoneIdStr {
|
||||||
switch (p.tag) {
|
switch (p.tag) {
|
||||||
case TombstoneTag.DeleteWithdrawalGroup:
|
case TombstoneTag.DeleteWithdrawalGroup:
|
||||||
return `tmb:${p.tag}:${p.withdrawalGroupId}`;
|
return `tmb:${p.tag}:${p.withdrawalGroupId}` as TombstoneIdStr;
|
||||||
case TombstoneTag.DeleteRefund:
|
case TombstoneTag.DeleteRefund:
|
||||||
return `tmb:${p.tag}:${p.refundGroupId}`;
|
return `tmb:${p.tag}:${p.refundGroupId}` as TombstoneIdStr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user