Hello, could you please fix RealtimeResposneEvent, the one in realtime.ts have timestamp: string, but the one in client.ts have timestamp: number, and it causes issues like
import { type RealtimeResponseEvent } from 'appwrite';
await new Realtime(client).subscribe(['lorem', 'ipsum'], (event: RealtimeResponseEvent<T>) => { console.log(event.payload); });
Types of property **timestamp **are incompatible. Type string is not assignable to type number
I can help! The issue is caused by a type mismatch RealtimeResponseEvent has timestamp: string in realtime.ts but timestamp: number in client.ts, creating a conflict when TypeScript tries to reconcile them. Which file has the correct type for your use case - should timestamp be a string or a number?
Recommended threads
- Substring lookup for array elements
Hello, Is substring look up possible for array of strings? ```js Query.contains('product_names', [chair]), ``` this only works if I have the exact item name. `...
- Hey everyone! I'm trying to self-host th...
Hey everyone! I'm trying to self-host the latest Appwrite version (1.8.1) on Coolify. Which docker-compose.yml file should I use from their repo? Can someone he...
- Weird Query Error
In next js I am getting this error in the image ```js queries: [ Query.equal('title', TitleId), Query.limit(10) ] ``` am I doing something...