mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: use interface instead of full type in auth
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user