signal-desktop/ts/badges/BadgeCategory.ts
2021-11-02 16:01:13 -07:00

15 lines
362 B
TypeScript

// 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
);