@datapos/datapos-tool-csv-parse 0.0.123 → 0.0.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,9 +2,9 @@ import { Options } from 'csv-parse/browser/esm';
|
|
|
2
2
|
import { ParsingRecord, RecordDelimiterId, ValueDelimiterId } from '@datapos/datapos-shared/component/dataView';
|
|
3
3
|
import { RetrieveRecordsOptions, RetrieveRecordsSummary } from '@datapos/datapos-shared/component/connector';
|
|
4
4
|
/**
|
|
5
|
-
* Parse text
|
|
5
|
+
* Parse text result.
|
|
6
6
|
*/
|
|
7
|
-
interface
|
|
7
|
+
interface ParseTextResult {
|
|
8
8
|
parsedRecords: ParsingRecord[];
|
|
9
9
|
recordDelimiterId: RecordDelimiterId;
|
|
10
10
|
valueDelimiterId: ValueDelimiterId;
|
|
@@ -20,7 +20,7 @@ declare class Tool {
|
|
|
20
20
|
/**
|
|
21
21
|
* Parse text.
|
|
22
22
|
*/
|
|
23
|
-
parseText(text: string, delimiters: ValueDelimiterId[]): Promise<
|
|
23
|
+
parseText(text: string, delimiters: ValueDelimiterId[]): Promise<ParseTextResult>;
|
|
24
24
|
}
|
|
25
25
|
export type { Options, Parser } from 'csv-parse/browser/esm';
|
|
26
|
-
export { type
|
|
26
|
+
export { type ParseTextResult, Tool };
|