mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-10-20 20:54:10 +00:00
Move some modules from src to shlink-web-component
This commit is contained in:
@@ -7,7 +7,7 @@ export const csvToJson = <T>(csvContent: string) => new Promise<T[]>((resolve) =
|
||||
|
||||
export type CsvToJson = typeof csvToJson;
|
||||
|
||||
const jsonParser = new Parser(); // TODO This accepts options if needed
|
||||
const jsonParser = new Parser(); // This accepts options if needed
|
||||
|
||||
export const jsonToCsv = <T>(data: T[]): string => jsonParser.parse(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user