ecyrbe/zodios

Improve documentation around TypeScript settings

dbanck opened this issue · 3 comments

dbanck commented

Hi!

It took me a while to figure out that Zodios requires allowSyntheticDefaultImports set to true inside the tsconfig.json to work.

Taking the example from the readme:
Without allowSyntheticDefaultImports the type of user doesn't resolve to something useful:
CleanShot 2023-05-08 at 11 25 11@2x

With "allowSyntheticDefaultImports": true set:
CleanShot 2023-05-08 at 11 27 21@2x

Having this documented somewhere or supplying an example tsconfig.json could help avoid this.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.