import { IHandlerData } from "../calculator/IHandlerData" ; import { AbstractHandler } from "./AbstractHandler" ; export class DelayedJSONHandler extends AbstractHandler { public pretty = false ; private data : IHandlerData [ ] = [ ] ; public handle ( data ) { this . data . push ( data ) ; } public finished ( ) { console . log ( JSON . stringify ( this . data ) ) ; } }