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
advSecretKey: string
me?: Contact
account?: proto.ADVSignedDeviceIdentity
account?: proto.IADVSignedDeviceIdentity
signalIdentities?: SignalIdentity[]
myAppStateKeyId?: string
firstUnuploadedPreKeyId: number
serverHasPreKeys: boolean
nextPreKeyId: number
}
type Awaitable<T> = T | Promise<T>
export type SignalKeyStore = {
getPreKey: (keyId: number) => Awaitable<KeyPair>