| 123456789101112131415161718 |
- import { ICounter } from "../common/interfaces";
- export class CommonJsCounter implements ICounter {
- constructor(private _value:number = 0) {
- }
- public get value(): string {
- return `commonjs ${this._value}`;
- }
- public incr(): void {
- ++this._value;
- }
- public decr(): void {
- --this._value;
- }
- }
|