I'm encountering an issue where the Query[] type is not being accepted in the listDocuments() method from Appwrite's SDK. The error message states that the argument of type Query[] is not assignable to the parameter of type string[], indicating a type mismatch. This occurs when I try to pass an array of Query objects, such as [Query.orderDesc("$createdAt")], to the method. The method seems to expect an array of strings instead of Query objects. This prevents the query array from being passed correctly, and TypeScript throws an error. The expected behavior is that the array of Query objects should be valid input for the method, but it seems the type definition for listDocuments() does not allow this. It might require updating the type or finding an alternative way to pass the queries.

I'm encountering an issue where the Query[] type is not being accepted in the listDocuments() method from Appwrite's SDK. The error message states that the argument of type Query[] is not assignable to the parameter of type string[], indicating a type mismatch. This occurs when I try to pass an array of Query objects, such as [Query.orderDesc("$createdAt")], to the method. The method seems to expect an array of strings instead of Query objects. This prevents the query array from being passed correctly, and TypeScript throws an error. The expected behavior is that the array of Query objects should be valid input for the method, but it seems the type definition for listDocuments() does not allow this. It might require updating the type or finding an alternative way to pass the queries.