docs: too many tabs in code preview (#1453)

handling events, connection.update
This commit is contained in:
Muhammad Fatkurozi
2022-04-05 11:44:07 +07:00
committed by GitHub
parent 032dcbc17a
commit 6d4fc87169

View File

@@ -189,7 +189,7 @@ The events are typed up in a type map, as mentioned here:
export type BaileysEventMap = {
/** connection state has been updated -- WS closed, opened, connecting etc. */
'connection.update': Partial<ConnectionState>
'connection.update': Partial<ConnectionState>
/** auth credentials updated -- some pre key state, device ID etc. */
'creds.update': Partial<AuthenticationCreds>
/** set chats (history sync), chats are reverse chronologically sorted */