From fc1c87bd62617bcbd4591b8ad4e3616ffc5c28b9 Mon Sep 17 00:00:00 2001 From: Yellowy <64450187+TheDevYellowy@users.noreply.github.com> Date: Wed, 18 Jan 2023 00:01:43 -0700 Subject: [PATCH] feat: switchUser --- typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index f1844f1..df4eb65 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -5321,8 +5321,8 @@ export type CacheConstructors = { // Narrowing the type of `manager.name` doesn't propagate type information to `holds` and the return type. export type CacheFactory = ( manager: CacheConstructors[keyof Caches], - holds: Caches[(typeof manager)['name']][1], -) => (typeof manager)['prototype'] extends DataManager ? Collection : never; + holds: Caches[typeof manager['name']][1], +) => typeof manager['prototype'] extends DataManager ? Collection : never; export type CacheWithLimitsOptions = { [K in keyof Caches]?: Caches[K][0]['prototype'] extends DataManager