Skip to content

Commit

Permalink
fix(csv-parse): ts callback CsvError argument
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Nov 1, 2021
1 parent 997a363 commit 899dc67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/csv-parse/dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as stream from "stream";

export type Callback = (err: Error | undefined, records: any | undefined, info: Info) => void;
export type Callback = (err: CsvError | undefined, records: any | undefined, info: Info) => void;

export interface Parser extends stream.Transform {}

Expand Down
2 changes: 1 addition & 1 deletion packages/csv-parse/dist/esm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as stream from "stream";

export type Callback = (err: Error | undefined, records: any | undefined, info: Info) => void;
export type Callback = (err: CsvError | undefined, records: any | undefined, info: Info) => void;

export interface Parser extends stream.Transform {}

Expand Down
2 changes: 1 addition & 1 deletion packages/csv-parse/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as stream from "stream";

export type Callback = (err: Error | undefined, records: any | undefined, info: Info) => void;
export type Callback = (err: CsvError | undefined, records: any | undefined, info: Info) => void;

export interface Parser extends stream.Transform {}

Expand Down

0 comments on commit 899dc67

Please sign in to comment.