lib/types: submodule fix description with freeformType (#443134)

This commit is contained in:
Johannes Kirschbauer 2025-09-25 14:57:10 +00:00 committed by GitHub
commit 2b2df96038
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 470 additions and 1 deletions

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 =