We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e45886 commit 740e4a9Copy full SHA for 740e4a9
src/middlewares/simpleParserMiddleware.ts
@@ -20,7 +20,7 @@ const parseData = <T>(value: string, columns: ColumnsType<T>, delimiter: Delimit
20
const lines = value.split('\n');
21
return lines.map((line) => {
22
const lineValues = line.split(delimiter);
23
- const parsedLine: T = {} as T;
+ const parsedLine = {} as T;
24
columns.forEach((column, columnIndex) => {
25
parsedLine[column.key] = (lineValues[columnIndex] as unknown) as T[keyof T];
26
});
0 commit comments