@@ -15,15 +15,15 @@ export class AliasStore<T extends AliasPiece> extends Store<T> {
15
15
* Looks up the name by the store, falling back to an alias lookup.
16
16
* @param key The key to look for.
17
17
*/
18
- public get ( key : string ) : T | undefined {
18
+ public override get ( key : string ) : T | undefined {
19
19
return super . get ( key ) ?? this . aliases . get ( key ) ;
20
20
}
21
21
22
22
/**
23
23
* Checks whether a key is in the store, or is an alias
24
24
* @param key The key to check
25
25
*/
26
- public has ( key : string ) : boolean {
26
+ public override has ( key : string ) : boolean {
27
27
return super . has ( key ) || this . aliases . has ( key ) ;
28
28
}
29
29
@@ -32,7 +32,7 @@ export class AliasStore<T extends AliasPiece> extends Store<T> {
32
32
* @param name The name of the file to load.
33
33
* @return Returns the piece that was unloaded.
34
34
*/
35
- public unload ( name : string | T ) : Promise < T > {
35
+ public override unload ( name : string | T ) : Promise < T > {
36
36
const piece = this . resolve ( name ) ;
37
37
38
38
// Unload all aliases for the given piece:
@@ -50,7 +50,7 @@ export class AliasStore<T extends AliasPiece> extends Store<T> {
50
50
* @param piece The piece to be inserted into the store.
51
51
* @return The inserted piece.
52
52
*/
53
- public async insert ( piece : T ) {
53
+ public override async insert ( piece : T ) {
54
54
for ( const key of piece . aliases ) {
55
55
this . aliases . set ( key , piece ) ;
56
56
}
0 commit comments