node-djiparsetxt
Version:
command-line application that reads a DJI '.txt' file and outputs a json.
23 lines (22 loc) • 970 B
TypeScript
import { IRowObject, IRowHeader } from "../shared/interfaces";
import BaseService from "./BaseService";
export declare const RECORD_ORDER: string[];
export declare class CsvService extends BaseService {
/**
* Create header rows data for csv production. Each row object contains properties
* that are stored to be able to create a header of the form 'row.property'.
* @param rows Array of rows to extract the header info from.
*/
getRowHeaders(rows: IRowObject[]): IRowHeader[];
/**
* Prints the given rows in `rows` in csv format.
* @param rows Array of rows to print the values of.
* @param headerDef The header definition already extracted from the rows.
*/
printRowValues(rows: IRowObject[], headerDef: IRowHeader[]): string;
/**
* Prints the header for the first line of the csv file.
* @param headerDef The header definiton to print.
*/
createHeader(headerDef: IRowHeader[]): string;
}