Extending a interface and changing the property type to a extending type
I have a interface
Component
with a property interaction
with the type MessageComponentInteraction
.
In my second interface ButtonComponent
I want to override the type of interaction
to the extending type ButtonInteraction
.
Is that possible?1 Reply
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP