Circular vector: improve generics (#30375)

This commit is contained in:
Ryan McKinley
2021-01-19 00:10:13 -08:00
committed by GitHub
parent 2096d25f9c
commit a310511571
@@ -15,7 +15,7 @@ interface CircularOptions<T> {
* This supports adding to the 'head' or 'tail' and will grow the buffer
* to match a configured capacity.
*/
export class CircularVector<T = any> extends FunctionalVector implements MutableVector<T> {
export class CircularVector<T = any> extends FunctionalVector<T> implements MutableVector<T> {
private buffer: T[];
private index: number;
private capacity: number;