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