From c6b46c0a370eebf7700650dbe5a39eb2cfb73bae Mon Sep 17 00:00:00 2001 From: Mats Jun Larsen Date: Tue, 11 Feb 2025 01:50:12 +0900 Subject: [PATCH] Re-enable noBannedTypes Biome rule (#7375) Function is usually frowned upon in TS because it gives no description of what type of function. --- biome.json | 1 - types/cache.interfaces.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/biome.json b/biome.json index c438c08a3..02a0d41fc 100644 --- a/biome.json +++ b/biome.json @@ -44,7 +44,6 @@ "complexity": { "noStaticOnlyClass": "off", "noForEach": "off", - "noBannedTypes": "off", "useLiteralKeys": "off" } } diff --git a/types/cache.interfaces.ts b/types/cache.interfaces.ts index c0cb650b8..dbdefbf1b 100644 --- a/types/cache.interfaces.ts +++ b/types/cache.interfaces.ts @@ -36,6 +36,6 @@ export type CacheableValue = | boolean | undefined | null - | Function + | ((...args: any) => any) | {[x: string]: CacheableValue} | Array;