signal-desktop/ts/util/isAciString.ts

10 lines
286 B
TypeScript
Raw Normal View History

2023-09-14 17:04:48 +00:00
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { AciString } from '../types/ServiceId';
import { isValidUuid } from './isValidUuid';
export function isAciString(value?: string | null): value is AciString {
return isValidUuid(value);
}