I've got an object that's generated basing on another object. The object's type is fully known. It looks like this.
const mediaHooks = {
sm: () => {}, //some func
md: () => {}, //some func
};
Now, I would like to 'spread' that object before exporting, so its properties count as a top-level export and I can import them like:
import {sm} from './media';
Is it possible?