diff --git a/src/Language/TypeScript/Docs/Html.hs b/src/Language/TypeScript/Docs/Html.hs
--- a/src/Language/TypeScript/Docs/Html.hs
+++ b/src/Language/TypeScript/Docs/Html.hs
@@ -422,6 +422,6 @@
         header 1 $ H.toHtml ("Interfaces" :: String)
         mapM_ (renderInterface [] 2) interfaces
       let declarations = ambientDeclarations ds
-      unless (null interfaces) $ do
+      unless (null declarations) $ do
         header 1 $ H.toHtml ("Declarations" :: String)
         renderAmbientDeclarations [] 2 (map (\(a, b, c) -> (a, b, Just c)) declarations)
diff --git a/typescript-docs.cabal b/typescript-docs.cabal
--- a/typescript-docs.cabal
+++ b/typescript-docs.cabal
@@ -1,5 +1,5 @@
 name: typescript-docs
-version: 0.0.1
+version: 0.0.2
 cabal-version: >=1.4
 build-type: Simple
 license: MIT
