We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07bc492 commit 5afd164Copy full SHA for 5afd164
src/Data/Aeson/TypeScript/Formatting.hs
@@ -66,7 +66,7 @@ formatTSDeclarations' options allDeclarations =
66
getDeclarationName :: TSDeclaration -> Maybe String
67
getDeclarationName (TSInterfaceDeclaration {..}) = Just interfaceName
68
getDeclarationName (TSTypeAlternatives {..}) = Just typeName
69
- _ = Nothing
+ getDeclarationName _ = Nothing
70
71
removeReferencesToRemovedNames :: [String] -> TSDeclaration -> TSDeclaration
72
removeReferencesToRemovedNames removedNames decl@(TSTypeAlternatives {..}) = decl { alternativeTypes = [x | x <- alternativeTypes, not (x `L.elem` removedNames)] }
0 commit comments