Skip to content

Allow readonly arrays on Value type #4025

@evanob

Description

@evanob

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.

 export type Value<Extensions = never> =
   | string
   | number
   | boolean
   | bigint
   | null
   | Extensions
   | Value<Extensions>[]
+  | readonly Value<Extensions>[]
   | { [key: string]: Value<Extensions> }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions