Move SignalProtocolStore to TypeScript

This commit is contained in:
Scott Nonnenberg 2021-02-26 15:42:45 -08:00 committed by Josh Perez
parent 5de4babc0d
commit 7e629edd21
14 changed files with 1291 additions and 1066 deletions

9
ts/util/isNotNil.ts Normal file
View file

@ -0,0 +1,9 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function isNotNil<T>(value: T | null | undefined): value is T {
if (value === null || value === undefined) {
return false;
}
return true;
}