signal-desktop/ts/badges/BadgeCategory.ts

16 lines
362 B
TypeScript
Raw Normal View History

2021-11-02 23:01:13 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { makeEnumParser } from '../util/enum';
// The server may return "testing", which we should parse as "other".
export enum BadgeCategory {
Donor = 'donor',
Other = 'other',
}
export const parseBadgeCategory = makeEnumParser(
BadgeCategory,
BadgeCategory.Other
);