We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b0d3b commit 8c8c6d5Copy full SHA for 8c8c6d5
source/choices/types.ts
@@ -5,7 +5,7 @@ import {GenericPaginationOptions} from '../buttons/pagination'
5
export type Choice = string | number
6
export type ChoiceText = string
7
export type ChoicesArray = readonly Choice[]
8
-export type ChoicesRecord = Record<Choice, ChoiceText>
+export type ChoicesRecord = Readonly<Record<Choice, ChoiceText>>
9
export type ChoicesMap = ReadonlyMap<Choice, ChoiceText>
10
export type Choices = ChoicesArray | ChoicesRecord | ChoicesMap
11
0 commit comments