-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
product / databasesFixes and upgrades for the Appwrite Database.Fixes and upgrades for the Appwrite Database.product / functionsFixes and upgrades for the Appwrite Functions.Fixes and upgrades for the Appwrite Functions.
Description
👟 Reproduction steps
When you use appwrite generate
It creates generated/appwrite/types.ts
for example in equals K extends QueryableKeys<InspectionsPaymentTransfers>
error TS2536: Type 'K' cannot be used to index type InspectionsPaymentTransfers.
In order to get around that I added K extends QueryableKeys<InspectionsPaymentTransfers> & keyof InspectionsPaymentTransfers it defies the feature's purpose as it will show $databaseId in .equals queries
I think you can replicate with any schema as it happened with all of my tables.
👍 Expected behavior
appwrite generate shouldn't throw any typescript error that blocks deployment pipeline
👎 Actual Behavior
It throws
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
Typescript version 5.9.3
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
product / databasesFixes and upgrades for the Appwrite Database.Fixes and upgrades for the Appwrite Database.product / functionsFixes and upgrades for the Appwrite Functions.Fixes and upgrades for the Appwrite Functions.