Currently, we do dev: data.find((item) => item.name === "dev") as unknown as DevFlag to override the type of dev. Implement this without using unknown as it is not the preferred way of doing so.
Expected Behavior
dev should auto-infer its type from its parent instead of overriding it
Current Behavior
To provide the type of dev we use as unknown as DevFlag
Screenshots
Reproducibility
[x] This issue is reproducible
[ ] This issue is not reproducible
Steps to Reproduce
Check basehandler.ts
Severity/Priority
[ ] Critical
[ ] High
[ ] Medium
[x] Low
Additional Information
Checklist
[x] I have read and followed the project's code of conduct.
[x] I have searched for similar issues before creating this one.
[x] I have provided all the necessary information to understand and reproduce the issue.
[x] I am willing to contribute to the resolution of this issue.
Issue Description
Currently, we do
dev: data.find((item) => item.name === "dev") as unknown as DevFlag
to override the type of dev. Implement this without using unknown as it is not the preferred way of doing so.Expected Behavior
dev should auto-infer its type from its parent instead of overriding it
Current Behavior
To provide the type of dev we use
as unknown as DevFlag
Screenshots
Reproducibility
Steps to Reproduce
basehandler.ts
Severity/Priority
Additional Information
Checklist