Constructors
constructor
- new CollectionCounter(): CollectionCounter
Properties
collections
size
size: number
Methods
decrement
- decrement(collectionName, id): number
Parameters
- collectionName: string
- id: string
Returns number
get
- get(collectionName, id): number
Parameters
- collectionName: string
- id: string
Returns number
increment
- increment(collectionName, id): number
Parameters
- collectionName: string
- id: string
Returns number
reset
- reset(): void
Returns void
toJSON
- toJSON(): Object
Returns Object