Skip to content

Commit

Permalink
fix(csv): remove unused opt parameter (#4598)
Browse files Browse the repository at this point in the history
Remove unused opt parameter (issue #4545), since the other overloads already handle it.
  • Loading branch information
Wencho8 authored Apr 16, 2024
1 parent fb00b3d commit 31018f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions csv/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,10 @@ export interface ParseOptions extends ReadOptions {
* ```
*
* @param input Input to parse.
* @param opt options of the parser.
* @returns If you don't provide `opt.skipFirstRow` and `opt.columns`, it returns `string[][]`.
* If you provide `opt.skipFirstRow` or `opt.columns`, it returns `Record<string, unknown>[]`.
*/
export function parse(input: string, opt?: undefined): string[][];
export function parse(input: string): string[][];
/**
* Csv parse helper to manipulate data.
* Provides an auto/custom mapper for columns.
Expand Down

0 comments on commit 31018f1

Please sign in to comment.