add readonly to getUnique

This commit is contained in:
Mads Rasmussen
2023-11-27 10:54:17 +01:00
parent 70d889f33c
commit 46c1d4b63a

View File

@@ -12,7 +12,7 @@ import { pushToUniqueArray } from './push-to-unique-array.function.js';
* The ArrayState provides methods to append data when the data is an Object.
*/
export class UmbArrayState<T> extends UmbDeepState<T[]> {
getUnique: (entry: T) => unknown;
readonly getUnique: (entry: T) => unknown;
#sortMethod?: (a: T, b: T) => number;
constructor(initialData: T[], getUniqueMethod: (entry: T) => unknown) {