Enforce stronger types for ArrayBuffers and storage
This commit is contained in:
parent
61ac79e9ae
commit
8f5086227a
56 changed files with 748 additions and 675 deletions
|
@ -36,6 +36,7 @@ import {
|
|||
KeyPairType,
|
||||
IdentityKeyType,
|
||||
SenderKeyType,
|
||||
SessionResetsType,
|
||||
SessionType,
|
||||
SignedPreKeyType,
|
||||
OuterSignedPrekeyType,
|
||||
|
@ -114,8 +115,6 @@ type MapFields =
|
|||
| 'sessions'
|
||||
| 'signedPreKeys';
|
||||
|
||||
type SessionResetsType = Record<string, number>;
|
||||
|
||||
export type SessionTransactionOptions = {
|
||||
readonly zone?: Zone;
|
||||
};
|
||||
|
@ -1199,8 +1198,8 @@ export class SignalProtocolStore extends EventsMixin {
|
|||
|
||||
const sessionResets = window.storage.get(
|
||||
'sessionResets',
|
||||
{}
|
||||
) as SessionResetsType;
|
||||
<SessionResetsType>{}
|
||||
);
|
||||
|
||||
const lastReset = sessionResets[id];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue