Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Commit 9c53199

Browse files
rauno56wdavidw
authored andcommitted
fix: add buffer as allowed type for input
1 parent 53ff6e7 commit 9c53199

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import * as stream from "stream";
66

77
export = parse;
88

9-
declare function parse(input: string, options?: parse.Options, callback?: parse.Callback): parse.Parser;
10-
declare function parse(input: string, callback?: parse.Callback): parse.Parser;
9+
declare function parse(input: Buffer | string, options?: parse.Options, callback?: parse.Callback): parse.Parser;
10+
declare function parse(input: Buffer | string, callback?: parse.Callback): parse.Parser;
1111
declare function parse(options?: parse.Options, callback?: parse.Callback): parse.Parser;
1212
declare function parse(callback?: parse.Callback): parse.Parser;
1313
declare namespace parse {

lib/sync.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import * as csvParse from './index';
22

33
export = parse;
44

5-
declare function parse(input: string, options?: csvParse.Options): any;
5+
declare function parse(input: Buffer | string, options?: csvParse.Options): any;
66
declare namespace parse {}

0 commit comments

Comments
 (0)