-
Notifications
You must be signed in to change notification settings - Fork 59
chore: add TypeScript Strict Mode Support for the packages #142
Copy link
Copy link
Open
Labels
@asgardeo/browserIssues related to the browser wrapper of the Asgardeo JavaScript SDKIssues related to the browser wrapper of the Asgardeo JavaScript SDK@asgardeo/javascriptIssues related to the core of the Asgardeo JavaScript SDKsIssues related to the core of the Asgardeo JavaScript SDKs@asgardeo/nextjsIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDKIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDK@asgardeo/nodeIssues related to the `Node.js` runtime wrapper of Asgardeo JavaScript SDKIssues related to the `Node.js` runtime wrapper of Asgardeo JavaScript SDK@asgardeo/reactIssues related to the `React.js` wrapper of Asgardeo JavaScript SDKIssues related to the `React.js` wrapper of Asgardeo JavaScript SDKComplexity/MediumIssues with the implementation complexity flagged as `Medium`Issues with the implementation complexity flagged as `Medium`Type/ImprovementtypingsIssues related to Type definitionsIssues related to Type definitions
Metadata
Metadata
Assignees
Labels
@asgardeo/browserIssues related to the browser wrapper of the Asgardeo JavaScript SDKIssues related to the browser wrapper of the Asgardeo JavaScript SDK@asgardeo/javascriptIssues related to the core of the Asgardeo JavaScript SDKsIssues related to the core of the Asgardeo JavaScript SDKs@asgardeo/nextjsIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDKIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDK@asgardeo/nodeIssues related to the `Node.js` runtime wrapper of Asgardeo JavaScript SDKIssues related to the `Node.js` runtime wrapper of Asgardeo JavaScript SDK@asgardeo/reactIssues related to the `React.js` wrapper of Asgardeo JavaScript SDKIssues related to the `React.js` wrapper of Asgardeo JavaScript SDKComplexity/MediumIssues with the implementation complexity flagged as `Medium`Issues with the implementation complexity flagged as `Medium`Type/ImprovementtypingsIssues related to Type definitionsIssues related to Type definitions
Current Limitation
Currently, TypeScript strict mode is not consistently enabled across all packages in the monorepo. This leads to:
anytypes that reduce type safetyWithout strict mode enabled, the codebase may contain:
anynullorundefinedwithout proper checksSuggested Improvement
Enable TypeScript strict mode across all packages and fix related type issues:
Implementation Plan
Note
Start with the following order:
Enable strict mode in tsconfig.json files
"strict": trueto all package-leveltsconfig.jsonfilesFix type errors systematically
anytypes by adding proper type annotationsUpdate build process
Documentation updates
Files to be updated
packages/*/tsconfig.json- Enable strict mode*.tsand*.tsxfiles - Fix type issuesPlease select the package issue is related to
@asgardeo/express, @asgardeo/browser, @asgardeo/javascript, @asgardeo/nextjs, @asgardeo/node, @asgardeo/nuxt, @asgardeo/react, @asgardeo/react-router, @asgardeo/vue
Version
current
Reporter Checklist