Skip to content
#

typechecker

Here are 69 public repositories matching this topic...

sandersn
sandersn commented Dec 9, 2021

ES imports and exports can only be used at the top level of a module. This is illegal:

function container() {
  import 'fs'
  export { container }
  namespace N { }
}

The current errors for these three statements are vague and, for JS, contain irrelevant terms:

Actual:

(1) "An import declaration can only be used in a namespace or module."
(2) "An export declaration can

Improve this page

Add a description, image, and links to the typechecker topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the typechecker topic, visit your repo's landing page and select "manage topics."

Learn more