Can implementation classes default-export implementation, instead of having a single export?
domenic opened this issue · 4 comments
domenic commented
We don't have any potential exports beside implementation, right? This would be a decent amount of churn on the jsdom side, but it seems easier to explain.
Sebmaster commented
The original plan here was to allow for stuff like impl setup methods which are not part of the exposed interface. Not sure if we still need that for anything...
domenic commented
#58 (comment) has some discussion of why this might be a good idea, although it's not concrete enough for me to say that we definitely want to keep the current form, so I'll leave this open for now.
ExE-Boss commented
I believe that the following:
export default class SomeInterface {
//
}is better than:
class SomeInterface {
//
}
export { SomeInterface as implementation };