Skip to content

Commit 936968b

Browse files
authored
🤖 Merge PR DefinitelyTyped#72663 update(papaparse): add skipFirstNLines config option for v5.5.0 implementation by @matsuby
1 parent e8c8bd6 commit 936968b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎types/papaparse/index.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ export interface ParseConfig<T = any, TInput = undefined> {
254254
*/
255255
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
256256
beforeFirstChunk?(chunk: string): string | void;
257+
/**
258+
* To skip first N number of lines when converting a CSV file to JSON.
259+
* @default 0
260+
*/
261+
skipFirstNLines?: number | undefined;
257262
}
258263

259264
export interface ParseWorkerConfig<T = any> extends ParseConfig<T> {

‎types/papaparse/package.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
{
5252
"name": "Opportunity Liu",
5353
"githubUsername": "OpportunityLiu"
54+
},
55+
{
56+
"name": "Kohei Matsubara",
57+
"githubUsername": "matsuby"
5458
}
5559
]
5660
}

0 commit comments

Comments
 (0)