From 7af44f609d934ad7d5e3afaa3d84b47de21159e8 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 28 May 2025 21:36:00 +0300 Subject: [PATCH] chore(client): fix a type error in tests --- apps/client/src/widgets/type_widgets/ckeditor/config.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/type_widgets/ckeditor/config.spec.ts b/apps/client/src/widgets/type_widgets/ckeditor/config.spec.ts index 8c96629b9..3bce30d9b 100644 --- a/apps/client/src/widgets/type_widgets/ckeditor/config.spec.ts +++ b/apps/client/src/widgets/type_widgets/ckeditor/config.spec.ts @@ -6,7 +6,7 @@ type ToolbarConfig = string | "|" | { items: ToolbarConfig[] }; describe("CKEditor config", () => { it("has same toolbar items for fixed and floating", () => { function traverseItems(config: ToolbarConfig): string[] { - const result = []; + const result: (string | string[])[] = []; if (typeof config === "object") { for (const item of config.items) { result.push(traverseItems(item));