electric-sql / electric-sql/electric
Allow readonly arrays on `Value` type
Open
feature request
triage
- Dominant language
- TypeScript
- Stars
- 10.4k
- Forks
- 375
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 18
Description
We're using types generated via OpenAPI, which results with some nested types like `tags: readonly string[]`. This is not allowed by the current `Value` type from `@electric-sql/client`.
We would like to see support for readonly arrays too.
```typescript
export type Value =
| string
| number
| boolean
| bigint
| null
| Extensions
| Value[]
+ | readonly Value[]
| { [key: string]: Value }
```
Contributor guide
Assessment
This issue has not been assessed yet.