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
According to the README you are supposed to be able to filter by fully qualified type name, however I cannot see how it would operate from looking at the code.
I would want to use this during cli to generate the correct type given multiple types by the same name. This is happening because of custom file extension support vue. Excluding all .vue files has no effect on the issue. So in my case I just want to filter any type not mine.
Example:
//node_modules/@vue/runtime-core/dist/runtime-core.d.tsexportinterfaceAppConfig{
...
// going to get sucked up by anything that includes a .vue file because of default definition files under node_modules}//my_project/src/types.tsexportinterfaceAppConfig{some_item: string}
npx typescript-json-schema my_project/tsconfig.app.json '"/my_project/src/store/types".AppConfig' --uniqueNames
Error: 2 definitions found for requested type""/my_project/src/store/types".AppConfig".
Looking at #151 symbols are filtered by the type name value. But should it be filtered by either type name or fully qualified name?
According to the README you are supposed to be able to filter by fully qualified type name, however I cannot see how it would operate from looking at the code.
I would want to use this during cli to generate the correct type given multiple types by the same name. This is happening because of custom file extension support
vue
. Excluding all .vue files has no effect on the issue. So in my case I just want to filter any type not mine.Example:
Looking at #151 symbols are filtered by the type name value. But should it be filtered by either type name or fully qualified name?
typescript-json-schema/typescript-json-schema.ts
Line 1576 in ec3f098
After making that change locally the cli generated the schema properly.
The text was updated successfully, but these errors were encountered: