import { Exporter } from './Base'; import { ExporterType } from './Type'; export abstract class ExporterJson implements Exporter { readonly type = ExporterType.JSON; public export(elements: Array) { return new Blob([ JSON.stringify(elements) ], { type: 'application/json' }); } }