Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make base class generic #1937

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

betocantu93
Copy link
Contributor

In order to support it to be extended to override hooks like onClose, onOpen... a generic interface is needed to pass more args, what do you think?

In order to support it to be extended to override hooks like onClose, onOpen... a generic interface is needed to pass more args, what do you think?
@RobbieTheWagner
Copy link
Owner

@betocantu93 I am not opposed to it. If you create a file to extend this in your code base, is TS still upset if you define a new signature?

@betocantu93
Copy link
Contributor Author

Yes, it simply says that it's not a generic type

@RobbieTheWagner
Copy link
Owner

@betocantu93 okay, I am fine with this. It looks like there is a lint failure. Do you mind fixing? Also, what args are you adding that you needed to extend for? Are there more we should add to the addon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants