electric-sql / electric-sql/electric

Allow readonly arrays on `Value` type

Open
#4,025 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.