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
|
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user