feat: switchUser

This commit is contained in:
Yellowy 2023-01-18 00:01:43 -07:00
parent c429e3313a
commit fc1c87bd62

4
typings/index.d.ts vendored
View File

@ -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>