You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a React component with a prop with the Typescript type ComponentProps<typeof OtherComponent>['type'], where OtherComponent's type prop is a union of string constants (e.g. type: 'a' | 'b' | 'c'). When I run this component through extract-react-types-loader (via require('!!extract-react-types-loader!./MyComponent.tsx')), I get the error Missing converter for: TSTypeQuery.
I have a React component with a prop with the Typescript type
ComponentProps<typeof OtherComponent>['type']
, whereOtherComponent
'stype
prop is a union of string constants (e.g.type: 'a' | 'b' | 'c'
). When I run this component throughextract-react-types-loader
(viarequire('!!extract-react-types-loader!./MyComponent.tsx')
), I get the errorMissing converter for: TSTypeQuery
.Per https://astexplorer.net/#/gist/1c8639f2528c0a3abeffeb6f5b06d074/0e1bfbd296ea053ce20a6829baacb858797fca90, I believe it's the
typeof
that produces aTSTypeQuery
AST node.FYI, I believe this issue is just a
TSTypeQuery
version of #59 and #75.Thanks for a handy tool!
The text was updated successfully, but these errors were encountered: