Disploy / Disploy/disploy

Smarter typings for routes

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.