Zet - What syntax should I use when exporting default in an index.ts entrypoint?
What syntax should I use when exporting default in an index.ts entrypoint?
It is as but don’t forget the brackets!!
// Assuming your default export is a function named `myFunction`
export { default as myFunction } from './path/to/defaultExport';
#js #ts #javascriptModules