Appwrite SDK for Svelte ๐งก โ ๏ธ Warning - this SDK was designed to support Appwrite 0.9 and is not compatible with the latest Appwrite versions. We are planing to refactor it as part of the SDK Generator for better support and maintenance.
Fixed offset and limit being swapped in the listDocuments call in the Collection component. (Example: Settings limit to 50 would send the request with offset=50, and vice versa)
Added definition for id, and documents props in the Collection component.
Added definition for id, collection, and document props in the Document component.
Added definition for the file prop in the Files component.
Added definition for files prop in the FileList component.
Added type for AppwriteUser for the user prop in the User component.
Updated userStore to a class for readability.
Reason for changes
I'm writing something with Svelte and TypeScript and found a bug with the Collection component, and noticed a few definitions were missing causing errors in VS Code.
Changes
offset
andlimit
being swapped in thelistDocuments
call in theCollection
component. (Example: Settingslimit
to50
would send the request withoffset=50
, and vice versa)id
, anddocuments
props in theCollection
component.id
,collection
, anddocument
props in theDocument
component.file
prop in theFiles
component.files
prop in theFileList
component.AppwriteUser
for theuser
prop in theUser
component.userStore
to a class for readability.Reason for changes
I'm writing something with Svelte and TypeScript and found a bug with the
Collection
component, and noticed a few definitions were missing causing errors in VS Code.