Format *.ts, *.js, *.css, *.html, *.json and *.svelte

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-08-31 17:47:07 +02:00
parent 687174a8e0
commit b3cec1f314
148 changed files with 4040 additions and 2555 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import LruCache from "lru-cache";
export function cached<Args extends unknown[], V>(
f: (...args: Args) => Promise<V>,
makeKey: (...args: Args) => string,
options?: LruCache.Options<string, { value: V }>
options?: LruCache.Options<string, { value: V }>,
): (...args: Args) => Promise<V> {
const cache = new LruCache(options || { max: 500 });
return async function (...args: Args): Promise<V> {