#5707·base-ui

Change SelectValueType to accept readonly arrays

Author: MonstraGCreated Sep 11, 2026Updated Sep 11, 2026
Labelsgood first issue

Feature request

Summary

typescript
- type SelectValueType<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
+ type SelectValueType<Value, Multiple extends boolean | undefined> = Multiple extends true ? readonly Value[] : Value;

Allow passing readonly (immutable) array as value for Select.

Examples in other libraries

Maybe not the best example because it's options and not value: https://github.com/mui/material-ui/blob/77245fd41663c22eeedd3f7072deafd7aa1284da/packages/mui-material/src/useAutocomplete/useAutocomplete.d.ts#L298

Motivation

I'm in react, so approximately all of my arrays are readonly, and I'm trying to write correct types.