mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2026-01-08 07:58:23 +01:00
Format
This commit is contained in:
1 parent
ad90a4ed58
commit
3845979870
4 files changed
+12
-10
No files matched your search
@@ -6,6 +6,7 @@ export type CSV_Data = Array<Record<string, unknown>>;
|
||||
|
||||
const convertCSVtoJSON = async ( csvText: string ) => {
|
||||
// Type cast OK, as the typing of the external library is not perfect.
|
||||
// NOTE: On transpilation to JS, it will be (more or less) disregarded anyway
|
||||
return ( await csv2json( csvText ) ) as CSV_Data;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user