Real-Dev-Squad / discord-slash-commands

MIT License
5 stars 50 forks source link

Remove unknown from basehandler.ts #207

Open joyguptaa opened 6 months ago

joyguptaa commented 6 months ago

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

Screenshot 2024-03-18 at 10 17 33 PM

Reproducibility

Steps to Reproduce

  1. Check basehandler.ts

Severity/Priority

Additional Information

Checklist