From 34b7f1ad7ca02d12b6207ee0e66e4bbea4374bc9 Mon Sep 17 00:00:00 2001 From: Jarkko Linnanvirta Date: Sat, 4 Mar 2023 12:51:08 +0200 Subject: [PATCH] #242: uniqueArray(): Fix an ESLint error. The error was: ESLint: Unexpected any. Specify a different type.(@typescript-eslint/no-explicit-any) --- src/Common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common.ts b/src/Common.ts index b333768..2ccfbcc 100644 --- a/src/Common.ts +++ b/src/Common.ts @@ -256,7 +256,7 @@ export function joinObjectProperties(object: {}, glue: string) { * * Idea is copied 2021-10-06 from https://stackoverflow.com/a/33121880/2754026 */ -export function uniqueArray(array: any[]) { +export function uniqueArray(array: Type[]): Type[] { return [...new Set(array)]; }