From fcf6ee4191d669262cbcb38f466933316baae334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aura=20Rom=C3=A1n?= Date: Wed, 15 Nov 2023 21:17:21 +0100 Subject: [PATCH] fix(AliasStore): support symbols --- src/lib/structures/AliasStore.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/structures/AliasStore.ts b/src/lib/structures/AliasStore.ts index ef5f7079..23cb0ec5 100644 --- a/src/lib/structures/AliasStore.ts +++ b/src/lib/structures/AliasStore.ts @@ -10,13 +10,13 @@ export class AliasStore(); + public readonly aliases = new Collection(); /** * Looks up the name by the store, falling back to an alias lookup. * @param key The key to look for. */ - public override get(key: string): T | undefined { + public override get(key: string | symbol): T | undefined { return super.get(key) ?? this.aliases.get(key); } @@ -24,7 +24,7 @@ export class AliasStore { + public override unload(name: string | symbol | T): Promise { const piece = this.resolve(name); // Unload all aliases for the given piece: