Move SignalProtocolStore to TypeScript
This commit is contained in:
parent
5de4babc0d
commit
7e629edd21
14 changed files with 1291 additions and 1066 deletions
9
ts/util/isNotNil.ts
Normal file
9
ts/util/isNotNil.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue