From 3adeb2ed6b48e862d64ec218942884a97889eeeb Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Fri, 19 Nov 2021 21:46:48 +0530 Subject: [PATCH] chore: use interface instead of full type in auth --- src/Types/Auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Types/Auth.ts b/src/Types/Auth.ts index 273f2fc..0e47fd8 100644 --- a/src/Types/Auth.ts +++ b/src/Types/Auth.ts @@ -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 | Promise export type SignalKeyStore = { getPreKey: (keyId: number) => Awaitable