diff --git a/language-typescript.cabal b/language-typescript.cabal
--- a/language-typescript.cabal
+++ b/language-typescript.cabal
@@ -1,5 +1,5 @@
 name: language-typescript
-version: 0.0.3
+version: 0.0.4
 cabal-version: >=1.4
 build-type: Simple
 license: MIT
diff --git a/src/Language/TypeScript/Parser.hs b/src/Language/TypeScript/Parser.hs
--- a/src/Language/TypeScript/Parser.hs
+++ b/src/Language/TypeScript/Parser.hs
@@ -40,9 +40,9 @@
 
 declarationElement = choice $ map try
   [ InterfaceDeclaration <$> commentPlaceholder <*> optionMaybe exported <*> interface
-  , ImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> entityName)
   , ExportDeclaration <$> (reserved "export" >> lexeme (char '=') *> identifier)
-  , ExternalImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> reserved "require" *> parens stringLiteral)
+  , ExternalImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> reserved "require" *> parens stringLiteral <* semi)
+  , ImportDeclaration <$> optionMaybe exported <*> (reserved "import" *> identifier) <*> (lexeme (char '=') *> entityName)
   , AmbientDeclaration <$> commentPlaceholder <*> optionMaybe exported <*> (reserved "declare" *> ambientDeclaration)
   ]
 
