Task 3: File Selector

This commit is contained in:
RobinB27
2025-11-16 18:22:03 +01:00
parent f65cf176f9
commit 5fa2b1f618
12 changed files with 183 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import { CSV_Data } from './types';
import { csv2json } from 'json-2-csv';
const convertCSVtoJSON = async ( csvText: string ) => {
export const convertCSVtoJSON = async ( csvText: string ) => {
// Type cast OK, as the typing of the external library is not perfect -> Actually it is.
// NOTE: On transpilation to JS, it will be (more or less) disregarded anyway.
// If you claim it isn't good typing, it's the same as expecting it to guess the typing,