Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSV write buffer support #549

Merged
merged 2 commits into from
Apr 23, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update typings so they can be used in both browser and node.
  • Loading branch information
Jarom Loveridge committed Apr 19, 2018
commit 385d1b0baeb1bb08ab112cfce82c8b1815a254c3
16 changes: 13 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="node" />

import { Writable, Stream } from 'stream';
declare interface Buffer { }
declare interface Stream { }
declare interface Writable { }

export const enum RelationshipType {
None = 0,
Expand Down Expand Up @@ -1082,6 +1082,11 @@ export interface Xlsx {
*/
createInputStream(): Writable;

/**
* write to a buffer
*/
writeBuffer(): Promise<Buffer>;

/**
* write to a file
*/
Expand Down Expand Up @@ -1119,6 +1124,11 @@ export interface Csv {
*/
createInputStream(): Writable;

/**
* write to a buffer
*/
writeBuffer(): Promise<Buffer>;

/**
* write to a file
*/
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"underscore": "^1.8.3"
},
"main": "./dist/es5/index.js",
"types": "./index.d.ts",
"files": [
"dist",
"LICENSE",
Expand Down