[BUG] keyof typeof Type
results in no type in documentation.json
#1425
Labels
keyof typeof Type
results in no type in documentation.json
#1425
Overview of the issue
Using
keyof typeof Type
results in an emptytype
indocumentation.json
.Operating System, Node.js, npm, compodoc version(s)
Windows 11 Enterprise (23H2)
Node v20.9.0
npm 10.2.4
@compodoc/compodoc@1.1.22
Compodoc installed globally or locally ?
Locally
Motivation for or Use Case
We're using Storybook together with Compodoc and since we're also using
keyof typeof
in several instances, this results in the Controls being unable to propagate the right type/value.Reproduce the error
enum
class
with either a property or method withkeyof typeof Type
.Type
being theenum
Result:
Notice how
myParam
has no type. I expected"One" | "Two"
as type.Related issues
#1329
But in this issue the problem is another bug (using
Extract
), which I'll also create another bug for to make it more clear what the problems are.Suggest a Fix
-
The text was updated successfully, but these errors were encountered: