mirror of
https://github.com/iib0011/omni-tools.git
synced 2026-04-22 13:16:23 +05:30
chore: error thrown on delimiter missing
This commit is contained in:
parent
d6d33c799d
commit
64e40d7c87
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ export function convertJsonToCsv(
|
|||
): string {
|
||||
const { delimiter, includeHeaders } = options;
|
||||
|
||||
if (!delimiter) throw new Error('No CSV delimiter.');
|
||||
|
||||
let parsed: unknown;
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue