M Zeeshan
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in practice, it is actually an object, as evidenced by the following logged output:
TypeScript
{
name: 'AppwriteException',
code: 404,
type: 'document_not_found',
response: {
message: 'Document with the requested ID could not be found.',
code: 404,
type: 'document_not_found',
version: '1.6.1',
},
}
This mismatch between the type definition and the actual runtime behavior can lead to type-related issues in TypeScript projects.
TL;DR
Issue: TypeScript type definitions for AppwriteException have a discrepancy with the actual runtime behavior. The response property is defined as a string but is actually an object.
Solution: Update the TypeScript type definitions for AppwriteException to correctly reflect that the response property is an object, not a string. Recommended threads
- Unable to access the cloud console
Still unable to access the cloud console after the downtime. Please help me. <:appwrite:1156975611466764298>
- Collections accidental delete
Hi there. I accidentally deleted my portion of collections from Appwrite Cloud. I can’t see any way to restore those. Is there anything possible to recover t...
- I am looking for a US/Canada developer.