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

19 lines (14 loc) 358 B
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import IterableCollectionBase from './IterableCollectionBase'; /** * Interface for implementing a finite read-only collection. */ export default interface ReadOnlyCollection<T> extends IterableCollectionBase<T> { count: number; contains (entry: T): boolean; }