mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 07:18:29 +08:00
Changed the items argument of DropDown to be readonly as it doesn't need to be mutable.
This commit is contained in:
parent
9545f056ab
commit
8247934e78
@ -22,7 +22,7 @@ export class DropDown<T> extends Control {
|
||||
|
||||
constructor(
|
||||
text: string,
|
||||
items: T[] | Property<T[]>,
|
||||
items: readonly T[] | Property<readonly T[]>,
|
||||
to_label: (element: T) => string,
|
||||
options?: DropDownOptions,
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user