WME/aufgabe5/node_modules/csvtojson/v2/fileline.d.ts

16 lines
544 B
TypeScript

import { ParseRuntime } from "./ParseRuntime";
/**
* convert data chunk to file lines array
* @param {string} data data chunk as utf8 string
* @param {object} param Converter param object
* @return {Object} {lines:[line1,line2...],partial:String}
*/
export declare function stringToLines(data: string, param: ParseRuntime): StringToLinesResult;
export interface StringToLinesResult {
lines: Fileline[];
/**
* last line which could be incomplete line.
*/
partial: string;
}
export declare type Fileline = string;