Smarter typings for routes
Open
enhancement
good first issue
packages:disploy
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Add proper typings which make a route automatically infer its type, from its type. For example infer the [type](https://github.com/Disploy/disploy/blob/4d859b0ea86d296d4688683e15bc23af6bd1f27c/packages/framework/src/structs/router/ChatInputRoute.ts#L11) `ChatInputRoute` if its [*type*](https://github.com/Disploy/disploy/blob/4d859b0ea86d296d4688683e15bc23af6bd1f27c/packages/framework/src/structs/router/ChatInputRoute.ts#L16) is `ChannelMessageWithSource`.
Contributor guide
Assessment
This issue has not been assessed yet.