lib/types: submodule fix description with freeformType

This commit is contained in:
Johannes Kirschbauer 2025-09-15 14:00:56 +02:00
commit 717bb9db24
No known key found for this signature in database

View file

@ -1247,7 +1247,14 @@ let
let
docsEval = base.extendModules { modules = [ noCheckForDocsModule ]; };
in
docsEval._module.freeformType.description or name;
if docsEval._module.freeformType ? description then
"open ${name} of ${
optionDescriptionPhrase (
class: class == "noun" || class == "composite"
) docsEval._module.freeformType
}"
else
name;
inherit check;
merge = {
__functor =