chore: use interface instead of full type in auth

This commit is contained in:
Adhiraj Singh
2021-11-19 21:46:48 +05:30
parent 3590c1f569
commit 3adeb2ed6b

View File

@@ -23,13 +23,14 @@ export type AuthenticationCreds = {
registrationId: number registrationId: number
advSecretKey: string advSecretKey: string
me?: Contact me?: Contact
account?: proto.ADVSignedDeviceIdentity account?: proto.IADVSignedDeviceIdentity
signalIdentities?: SignalIdentity[] signalIdentities?: SignalIdentity[]
myAppStateKeyId?: string myAppStateKeyId?: string
firstUnuploadedPreKeyId: number firstUnuploadedPreKeyId: number
serverHasPreKeys: boolean serverHasPreKeys: boolean
nextPreKeyId: number nextPreKeyId: number
} }
type Awaitable<T> = T | Promise<T> type Awaitable<T> = T | Promise<T>
export type SignalKeyStore = { export type SignalKeyStore = {
getPreKey: (keyId: number) => Awaitable<KeyPair> getPreKey: (keyId: number) => Awaitable<KeyPair>