diff --git a/lib/index.d.ts b/lib/index.d.ts index 0079bee..8be0723 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -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 { diff --git a/lib/sync.d.ts b/lib/sync.d.ts index 8593b65..7886698 100644 --- a/lib/sync.d.ts +++ b/lib/sync.d.ts @@ -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 {} \ No newline at end of file