threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimpleTextExporter.ts 273B

12345678
  1. import {IExportParser} from '../IExporter'
  2. import {AnyOptions} from 'ts-browser-helpers'
  3. export class SimpleTextExporter implements IExportParser {
  4. async parseAsync(obj: any, _: AnyOptions): Promise<Blob> {
  5. return new Blob([obj], {type: 'text/plain'})
  6. }
  7. }