🐛 Bug Report: We should remove top level types
field in package.json
.
#55
Labels
bug
Something isn't working
types
field in package.json
.
#55
👟 Reproduction steps
moduleResolution: "bundler"
in yourtsconfig
.appwrite
web sdk.This is due to the fact that for TypeScript to work with packages that have
exports
field when using the newmoduleResolution: node16/nodenext/bundler
settings. When those are not used then TypeScript just ignorespackage.json#exports
- but when you make it aware ofexports
by using those options then it requires the types to be included inexports
and not as the top-level key ofpackage.json
.You can also visit this tool to check that the types for this sdk are definitely wrong: https://arethetypeswrong.github.io/.
👍 Expected behavior
Types should be well defined.
👎 Actual Behavior
Types aren't well defined with
moduleResolution: "bundler"
option on in yourtsconfig.json
.🎲 Appwrite version
Version 0.10.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: