title: module.export vs export handler in js and typescript
body: <p>what is the difference between this exporting function in typescript</p>
  <pre><code>    export const handler = someWrapper(
      eventHandler({
              ...someMiddlewares,
              lambdaHandler
      })
  )
  </code></pre>
  <p>and this exporting in javascript:</p>
  <pre><code>                module.export ={ 
                    someWrapper(
                       eventHandler({
                      ...someMiddlewares,
                      lambdaHandler
                  }),
                )
             lambdaHandler
            }
  </code></pre>