ecyrbe / zodios

typescript http client and server with zod validation

Home Page:https://www.zodios.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve documentation around TypeScript settings

dbanck opened this issue · comments

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.

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.

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.

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.