Skip to content

Commit

Permalink
fix: add buffer as allowed type for input
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 authored and wdavidw committed Aug 9, 2019
1 parent 53ff6e7 commit 9c53199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import * as stream from "stream";

export = parse;

declare function parse(input: string, options?: parse.Options, callback?: parse.Callback): parse.Parser;
declare function parse(input: string, callback?: parse.Callback): parse.Parser;
declare function parse(input: Buffer | string, options?: parse.Options, callback?: parse.Callback): parse.Parser;
declare function parse(input: Buffer | string, callback?: parse.Callback): parse.Parser;
declare function parse(options?: parse.Options, callback?: parse.Callback): parse.Parser;
declare function parse(callback?: parse.Callback): parse.Parser;
declare namespace parse {
Expand Down
2 changes: 1 addition & 1 deletion lib/sync.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import * as csvParse from './index';

export = parse;

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

0 comments on commit 9c53199

Please sign in to comment.