You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the strictNullChecks flag in the tsconfig.json file for the API is not enabled. This means that null and undefined are treated as assignable to other types, which can potentially lead to bugs that are only caught at runtime.
By enabling strictNullChecks: true, we can enforce more robust type safety in the codebase by explicitly handling null and undefined cases. This will improve code quality, reduce runtime errors, and align with TypeScript best practices.
Acceptance Criteria:
Update the tsconfig.json file to enable the strictNullChecks flag:
Currently, the
strictNullChecks
flag in thetsconfig.json
file for the API is not enabled. This means thatnull
andundefined
are treated as assignable to other types, which can potentially lead to bugs that are only caught at runtime.By enabling
strictNullChecks: true
, we can enforce more robust type safety in the codebase by explicitly handlingnull
andundefined
cases. This will improve code quality, reduce runtime errors, and align with TypeScript best practices.Acceptance Criteria:
tsconfig.json
file to enable thestrictNullChecks
flag:Modules
WebSocket
Analytics
bot-stats
Settings
i18n
CMS
Chat
Attachment
Channels
Plugins
Utils
User Module
Generic
Errors
The text was updated successfully, but these errors were encountered: