Skip to content

Commit

Permalink
Add generic type to LinkQueueWrapper (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenEschauzier committed Apr 12, 2024
1 parent a3d05a2 commit 9e70a64
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -4,10 +4,10 @@ import type { ILinkQueue } from './ILinkQueue';
/**
* A link queue that wraps a given link queue.
*/
export class LinkQueueWrapper implements ILinkQueue {
private readonly linkQueue: ILinkQueue;
export class LinkQueueWrapper<T extends ILinkQueue = ILinkQueue> implements ILinkQueue {
protected readonly linkQueue: T;

public constructor(linkQueue: ILinkQueue) {
public constructor(linkQueue: T) {
this.linkQueue = linkQueue;
}

Expand Down

0 comments on commit 9e70a64

Please sign in to comment.