Generally, does it make sense to apply a `JsModule...
# javascript
e
Generally, does it make sense to apply a
JsModule
annotation to a file containing an
external interface
?
a
I'm not sure. If you have a file containing only external interfaces, you can skip JsModule, just because it will not add any runtime. The only exception I see, if you decide in future to add some declaration (class as an example), to prevent hours of debugging you can put I now. I mean it should not add extra things into your bundle, so, if you just describe a library it make sense to add it to prevent the situation I described
gratitude thank you 1
e
Got it. I normally have a single declaration per file, be it a function/class/interface. So it looks like avoiding
JsModule
is what I'll do! Thanks!