Skip to content

Commit

Permalink
Make the Row TypeScript return type generic (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan-Arrowood authored Feb 12, 2020
1 parent 394ba50 commit 2048173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const csv = 'type,part\nunicorn,horn\nrainbow,pink';
})();
```
*/
declare function neatCsv(
declare function neatCsv<Row = neatCsv.Row>(
data: string | Buffer | ReadableStream,
options?: neatCsv.Options
): Promise<neatCsv.Row[]>;
): Promise<Row[]>;

export = neatCsv;

0 comments on commit 2048173

Please sign in to comment.