Prefer import type when importing types

This commit is contained in:
Evan Hahn 2021-10-26 14:15:33 -05:00 committed by GitHub
parent 0f635af8a9
commit 74fde10ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
721 changed files with 2037 additions and 1947 deletions

View file

@ -6,28 +6,30 @@
import { isNumber } from 'lodash';
import {
import type {
Direction,
IdentityKeyStore,
PreKeyRecord,
ProtocolAddress,
SenderKeyRecord,
SessionRecord,
SignedPreKeyRecord,
Uuid,
} from '@signalapp/signal-client';
import {
IdentityKeyStore,
PreKeyStore,
PrivateKey,
ProtocolAddress,
PublicKey,
SenderKeyRecord,
SenderKeyStore,
SessionRecord,
SessionStore,
SignedPreKeyRecord,
SignedPreKeyStore,
Uuid,
} from '@signalapp/signal-client';
import { freezePreKey, freezeSignedPreKey } from './SignalProtocolStore';
import { Address } from './types/Address';
import { QualifiedAddress } from './types/QualifiedAddress';
import type { UUID } from './types/UUID';
import { Zone } from './util/Zone';
import type { Zone } from './util/Zone';
function encodeAddress(address: ProtocolAddress): Address {
const name = address.name();