Skip to content

Commit

Permalink
fix(AliasStore): pass StoreName type parameter to Store (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Nov 15, 2023
1 parent 12be6ba commit 9a3492c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/structures/AliasStore.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Collection } from '@discordjs/collection';
import type { AliasPiece } from './AliasPiece';
import { Store } from './Store';
import type { StoreRegistryEntries } from './StoreRegistry';

/**
* The store class which contains {@link AliasPiece}s.
*/
export class AliasStore<T extends AliasPiece> extends Store<T> {
export class AliasStore<T extends AliasPiece, StoreName extends keyof StoreRegistryEntries = keyof StoreRegistryEntries> extends Store<T, StoreName> {
/**
* The aliases referencing to pieces.
*/
Expand Down

0 comments on commit 9a3492c

Please sign in to comment.