atlassian / extract-react-types

One stop shop for documenting your react components.
https://atlassian.github.io/extract-react-types/
MIT License
179 stars 28 forks source link

Add support for parsing `unknown` type #111

Closed Samuel-Lewis closed 4 years ago

Samuel-Lewis commented 4 years ago

Hello! Currently, it seems there is no support for parsing the unknown type. This was introduce into TS 3.0.

Is there any possibly of adding supprt for this? Thanks.

danieldelcore commented 4 years ago

Error log:

Error: Missing converter for: TSUnknownKeyword
at convert (/opt/atlassian/pipelines/agent/build/node_modules/extract-react-types/dist/extract-react-types.cjs.dev.js:1785:25)
    at converters.TSTypeAnnotation (/opt/atlassian/pipelines/agent/build/node_modules/extract-react-types/dist/extract-react-types.cjs.dev.js:1332:10)
    at convert (/opt/atlassian/pipelines/agent/build/node_modules/extract-react-types/dist/extract-react-types.cjs.dev.js:1786:16)
    at converters.TSPropertySignature (/opt/atlassian/pipelines/agent/build/node_modules/extract-react-types/dist/extract-react-types.cjs.dev.js:1210:12)
    at convert (/opt/atlassian/pipelines/agent/build/node_modules/extract-react-types/dist/extract-react-types.cjs.dev.js:1786:16)
    at /opt/atlassian/pipelines/agent/build/node_modules/extract-react-types/dist/extract-react-types.cjs.dev.js:1326:14
    at Array.map (<anonymous>)
Noviny commented 4 years ago

This has been fixed