UNPKG

@tsdotnet/collection-base

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/collection-base/blob/master/LICENSE) ![npm-publish](https://github.com/tsdotnet/collection-base/workflows/npm-publish/badge.svg) [![npm ve

22 lines (16 loc) 450 B
/*! * @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; }