@tsdotnet/collection-base
Version:
[](https://github.com/tsdotnet/collection-base/blob/master/LICENSE)  [![npm ve
22 lines (16 loc) • 450 B
TypeScript
/*!
* @author electricessence / https://github.com/electricessence/
* @license MIT
*/
import Collection from './Collection';
import ReadOnlyList from './ReadOnlyList';
/**
* Interface for implementing an indexable collection.
*/
export default interface IndexedCollection<T>
extends Collection<T>, ReadOnlyList<T>
{
set (index: number, value: T): boolean;
insert (index: number, value: T): void;
removeAt (index: number): boolean;
}