fix(types): fixed CachedManager constructor arguments in type (#9761)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Lily Bergonzat 2023-08-11 12:04:13 +02:00 committed by GitHub
parent d8e37551ce
commit b3c85d34a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3737,7 +3737,7 @@ export abstract class DataManager<K, Holds, R> extends BaseManager {
}
export abstract class CachedManager<K, Holds, R> extends DataManager<K, Holds, R> {
protected constructor(client: Client<true>, holds: Constructable<Holds>);
protected constructor(client: Client<true>, holds: Constructable<Holds>, iterable?: Iterable<Holds>);
private readonly _cache: Collection<K, Holds>;
private _add(data: unknown, cache?: boolean, { id, extras }?: { id: K; extras: unknown[] }): Holds;
}