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
The any type can sometimes leak into your codebase. TypeScript compiler skips the type checking of the any typed variables, so it creates a potential safety hole, and source of bugs in your codebase. We recommend using unknown or never type variable.
Hello, I forked the repo to resolve this issue, but leadminer/backend/src/utils/helpers/validation.ts produces errors when the type of value changes from any to unknown or never. The function would need to be changed to replace the any type for value. If you have an alternative solution, however, I can quickly make the change and submit the pull request.
Hello, I forked the repo to resolve this issue, but leadminer/backend/src/utils/helpers/validation.ts produces errors when the type of value changes from any to unknown or never. The function would need to be changed to replace the any type for value. If you have an alternative solution, however, I can quickly make the change and submit the pull request.
Hello @davido-noowin, feel free to make the necessary changes, make sure to add unit-tests then submit your PR—we welcome it!
Description
The
any
type can sometimes leak into your codebase. TypeScript compiler skips the type checking of theany
typed variables, so it creates a potential safety hole, and source of bugs in your codebase. We recommend usingunknown
ornever
type variable.Occurrences
leadminer/frontend/src/components/Mining/StepperPanels/MinePanel.vue
Line 218 in f43c554
leadminer/backend/src/utils/helpers/validation.ts
Line 2 in f43c554
leadminer/backend/test/unit/enrichment-service/helpers.test.ts
Line 125 in f43c554
Guidelines
Reference the issue in your PR description, to close it automatically when your PR is merged
The text was updated successfully, but these errors were encountered: