Trouble Understanding ParseError with Date Type in Struct
I'm having a lot of trouble wrapping my head around this error.
Could anyone help me out?
Metadata is stored as a JSONB column in my database. But is returned as a JS object
ts
ParseError: Struct (Type side)
["metadata"]
{ readonly floatProjectsSyncLastSyncedAt?: Date; readonly togglProjectsSyncLastSyncedAt?: Date } | null
{ readonly floatProjectsSyncLastSyncedAt?: Date; readonly togglProjectsSyncLastSyncedAt?: Date }
["floatProjectsSyncLastSyncedAt"]
Date
From side refinement failure
Expected DateFromSelf, actual "2025-10-12T11:05:48.154Z"
Expected null, actual {"floatProjectsSyncLastSyncedAt":"2025-10-12T11:05:48.154Z"}