File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,16 @@ export interface ParsingOptions extends CommonOptions {
205
205
dense ?: boolean ;
206
206
}
207
207
208
+ export interface SheetOption {
209
+ /**
210
+ * Name of Worksheet (for single-sheet formats)
211
+ * @default ''
212
+ */
213
+ sheet ?: string ;
214
+ }
215
+
208
216
/** Options for write and writeFile */
209
- export interface WritingOptions extends CommonOptions {
217
+ export interface WritingOptions extends CommonOptions , SheetOption {
210
218
/** Output data encoding */
211
219
type ?: 'base64' | 'binary' | 'buffer' | 'file' | 'array' | 'string' ;
212
220
@@ -222,12 +230,6 @@ export interface WritingOptions extends CommonOptions {
222
230
*/
223
231
bookType ?: BookType ;
224
232
225
- /**
226
- * Name of Worksheet (for single-sheet formats)
227
- * @default ''
228
- */
229
- sheet ?: string ;
230
-
231
233
/**
232
234
* Use ZIP compression for ZIP-based formats
233
235
* @default false
@@ -702,7 +704,7 @@ export interface JSON2SheetOpts extends CommonOptions, DateNFOption {
702
704
703
705
export interface SheetJSONOpts extends JSON2SheetOpts , OriginOption { }
704
706
705
- export interface Table2SheetOpts extends CommonOptions , DateNFOption , OriginOption {
707
+ export interface Table2SheetOpts extends CommonOptions , DateNFOption , OriginOption , SheetOption {
706
708
/** If true, plaintext parsing will not parse values */
707
709
raw ?: boolean ;
708
710
You can’t perform that action at this time.
0 commit comments