Closed titushm closed 1 year ago
like this
i think that having a function that is somthing like exportUnique
would be better as then you can use both systems
maybe singleExport
would be better
so that you can either export an object and have it merged with all the others or just export a single object which could only be called once per class
maybe
singleExport
would be better
this dosent emphasise the fact that it can only be called once per module though
singleCanOnlyBeCalledOncePerModuleExport
it can only be called once beacuse in the old system if you did
exports({
ParseContent,
resolveMentions,
resolveChannelMentions,
});
exports({
resolveRoleMentions,
resolveRelativeTime,
Sanitise
});
all the objects would be exported however with the new system as a single object is being exported it couldnt support two calls as then you would have to remove the previous export so it wwould be better if this creates an error
nice formatting
i think exportSingle
is better than singleExport
as it fits in with exportAs
better
Fixed in #6