You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's start a discussion here and define what we want, so we have a plan to "fix" this issue and @dielduarte adds in the issue description a list as we agree in new things.
I would start suggesting to use types over an interface, there are many articles comparing both, such as interface vs type alias. The point is that type makes more sense semantically for our use, we are mainly using it for type inference and not as an interface to be implemented. Another big point here is that type alias allows you to play better with advanced types of the typescript as the projects grow more complex.
Activity
assuncaocharles commentedon May 12, 2020
Let's start a discussion here and define what we want, so we have a plan to "fix" this issue and @dielduarte adds in the issue description a list as we agree in new things.
I would start suggesting to use types over an interface, there are many articles comparing both, such as interface vs type alias. The point is that type makes more sense semantically for our use, we are mainly using it for type inference and not as an interface to be implemented. Another big point here is that type alias allows you to play better with advanced types of the typescript as the projects grow more complex.
dielduarte commentedon May 12, 2020
I've had read the post and that makes sense in our case, the main point is to keep consistency in the codebase.
to get rid of this "issue" here, I would suggest a few changes in our codebase:
details: anyadding a global type definition, this is about the details params returned by the WebRequest API events callbacks https://developer.chrome.com/extensions/webRequestrequestExist = (context: any,this context is about CoreContextwhat do you think @assuncaocharles ?
assuncaocharles commentedon May 13, 2020
It works for me
details: anyadding a global type definition, this is about the details params returned by the WebRequest API events callbacksdielduarte commentedon May 13, 2020
@assuncaocharles niceeee! let's do it 🚀