Skip to content

Commit 8c8c6d5

Browse files
committed
fix(choices): readonly record
A Record by itself is not readonly. Not sure why the eslint rule hasnt noticed that...
1 parent 83b0d3b commit 8c8c6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/choices/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {GenericPaginationOptions} from '../buttons/pagination'
55
export type Choice = string | number
66
export type ChoiceText = string
77
export type ChoicesArray = readonly Choice[]
8-
export type ChoicesRecord = Record<Choice, ChoiceText>
8+
export type ChoicesRecord = Readonly<Record<Choice, ChoiceText>>
99
export type ChoicesMap = ReadonlyMap<Choice, ChoiceText>
1010
export type Choices = ChoicesArray | ChoicesRecord | ChoicesMap
1111

0 commit comments

Comments
 (0)