Skip to content

Make base class generic#1937

Open
betocantu93 wants to merge 1 commit intoRobbieTheWagner:mainfrom
betocantu93:patch-1
Open

Make base class generic#1937
betocantu93 wants to merge 1 commit intoRobbieTheWagner:mainfrom
betocantu93:patch-1

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.

2 participants