feat: switchUser
This commit is contained in:
parent
c429e3313a
commit
fc1c87bd62
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@ -5321,8 +5321,8 @@ export type CacheConstructors = {
|
|||||||
// Narrowing the type of `manager.name` doesn't propagate type information to `holds` and the return type.
|
// Narrowing the type of `manager.name` doesn't propagate type information to `holds` and the return type.
|
||||||
export type CacheFactory = (
|
export type CacheFactory = (
|
||||||
manager: CacheConstructors[keyof Caches],
|
manager: CacheConstructors[keyof Caches],
|
||||||
holds: Caches[(typeof manager)['name']][1],
|
holds: Caches[typeof manager['name']][1],
|
||||||
) => (typeof manager)['prototype'] extends DataManager<infer K, infer V, any> ? Collection<K, V> : never;
|
) => typeof manager['prototype'] extends DataManager<infer K, infer V, any> ? Collection<K, V> : never;
|
||||||
|
|
||||||
export type CacheWithLimitsOptions = {
|
export type CacheWithLimitsOptions = {
|
||||||
[K in keyof Caches]?: Caches[K][0]['prototype'] extends DataManager<infer K, infer V, any>
|
[K in keyof Caches]?: Caches[K][0]['prototype'] extends DataManager<infer K, infer V, any>
|
||||||
|
Loading…
Reference in New Issue
Block a user