fix(d.ts)

This commit is contained in:
2025-07-25 15:23:51 +03:00
parent 60fd0867f5
commit 48a9fb7473
6 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,6 @@
import { ForwardIterator } from "./Forward";
export interface BidirectionalIterator<T> extends ForwardIterator<T> {
export class BidirectionalIterator<T> extends ForwardIterator<T> {
/**
* decrements iterator, it doesn't make copy
* @returns {this}

View File

@ -1,8 +1,8 @@
export interface Item<T> {
export class Item<T> {
value: T
}
export interface ForwardIterator<T> {
export class ForwardIterator<T> {
clone(): ForwardIterator<T>;
copy(rhs: ForwardIterator<T>): this;
get value(): T;

View File

@ -1,6 +1,6 @@
import { BidirectionalIterator } from "./Bidirectional";
export interface RandomAccessIterator<T> extends BidirectionalIterator<T> {
export class RandomAccessIterator<T> extends BidirectionalIterator<T> {
sub(offset: number): this;
add(offset: number): this;
cmp(rhs: RandomAccessIterator<T>): number;