functional-typescript icon indicating copy to clipboard operation
functional-typescript copied to clipboard

Fix support for named function exports

Open transitive-bullshit opened this issue 6 years ago • 0 comments

index.ts

export const helloWorld = (name = 'World') => {
  return `Hello ${name}!`
}

This example currently fails parsing with Unable to infer a main function export, but this use case should work.

transitive-bullshit avatar Apr 09 '19 17:04 transitive-bullshit