feat: add "strictNullChecks"

This commit is contained in:
Adhiraj Singh
2022-07-08 10:38:25 +05:30
parent 7426b7aa2f
commit 40a1e268aa
42 changed files with 350 additions and 339 deletions

View File

@@ -25,7 +25,7 @@ export const WA_CERT_DETAILS = {
SERIAL: 0,
}
const BASE_CONNECTION_CONFIG: CommonSocketConfig<any> = {
const BASE_CONNECTION_CONFIG: CommonSocketConfig = {
version: version as any,
browser: Browsers.baileys('Chrome'),
@@ -42,6 +42,7 @@ const BASE_CONNECTION_CONFIG: CommonSocketConfig<any> = {
export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
...BASE_CONNECTION_CONFIG,
auth: undefined as any,
downloadHistory: true,
markOnlineOnConnect: true,
linkPreviewImageThumbnailWidth: 192,