Re-enable noBannedTypes Biome rule (#7375)

Function is usually frowned upon in TS because it gives no description
of what type of function.
This commit is contained in:
Mats Jun Larsen
2025-02-11 01:50:12 +09:00
committed by GitHub
parent 1aef3f3863
commit c6b46c0a37
2 changed files with 1 additions and 2 deletions

View File

@@ -44,7 +44,6 @@
"complexity": {
"noStaticOnlyClass": "off",
"noForEach": "off",
"noBannedTypes": "off",
"useLiteralKeys": "off"
}
}

View File

@@ -36,6 +36,6 @@ export type CacheableValue =
| boolean
| undefined
| null
| Function
| ((...args: any) => any)
| {[x: string]: CacheableValue}
| Array<CacheableValue>;