From dbad408f68e9d3fcbbf3ed24d84544373403e154 Mon Sep 17 00:00:00 2001 From: guido Date: Sat, 27 Jan 2024 20:21:06 +0100 Subject: [PATCH] Internal Set Array must be Readonly Signed-off-by: guido --- sources/client/src/api/search-entities.ts | 2 +- sources/client/src/vo/set.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/client/src/api/search-entities.ts b/sources/client/src/api/search-entities.ts index ab6a751..44e5993 100644 --- a/sources/client/src/api/search-entities.ts +++ b/sources/client/src/api/search-entities.ts @@ -33,7 +33,7 @@ export async function searchEntities( }); // TODO What happen in the case of an error? - const entities = await fetch>({ + const entities = await fetch>({ path: `?rest_route=/wp/v2/search&${params.toString()}`, }); diff --git a/sources/client/src/vo/set.ts b/sources/client/src/vo/set.ts index 77e93bb..4788c8f 100644 --- a/sources/client/src/vo/set.ts +++ b/sources/client/src/vo/set.ts @@ -1,7 +1,7 @@ export class Set { readonly #data: ReadonlyArray; - public constructor(data: Array = []) { + public constructor(data: ReadonlyArray = []) { this.#data = data; }