mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-10-19 12:14:11 +00:00
Migrate from ESLint to Oxlint and Oxfmt
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { Parser } from '@json2csv/plainjs';
|
||||
import csv from 'csvtojson';
|
||||
|
||||
export const csvToJson = <T>(csvContent: string) => new Promise<T[]>((resolve) => {
|
||||
csv().fromString(csvContent).then(resolve);
|
||||
});
|
||||
export const csvToJson = <T>(csvContent: string) =>
|
||||
new Promise<T[]>((resolve) => {
|
||||
csv().fromString(csvContent).then(resolve);
|
||||
});
|
||||
|
||||
export type CsvToJson = typeof csvToJson;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user