Skip to content

Commit

Permalink
feat: export internal types
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronicStone committed Apr 23, 2024
1 parent b30f64d commit 46eda6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import XLSX, { type WorkSheet, utils } from 'xlsx-js-style'
import type { CellValue, Column, ColumnGroup, ExcelBuildOutput, ExcelBuildParams, ExcelSchema, GenericObject, NestedPaths, Not, SchemaColumnKeys, SheetConfig, SheetParams, SheetTable, SheetTableBuilder, TOutputType, TransformersMap } from './types'
import { applyGroupBorders, buildCell, buildSheetConfig, computeSheetRange, getColumnHeaderStyle, getColumnSeparatorIndexes, getPrevRowsHeight, getRowMaxHeight, getRowValue, getSheetChunkMaxHeight, getWorksheetColumnWidths, splitIntoChunks, tableHasSummary } from './utils'

export type * from './types'

export class ExcelSchemaBuilder<
T extends GenericObject,
CellKeyPaths extends string,
Expand Down Expand Up @@ -132,7 +134,8 @@ export class ExcelBuilder<UsedSheetKeys extends string = never> {
public build<
OutputType extends TOutputType,
Output = ExcelBuildOutput<OutputType>,
>(params: ExcelBuildParams<OutputType>): Output {
>(params: ExcelBuildParams<OutputType>,
): Output {
const workbook = utils.book_new()
const _sheets = buildSheetConfig(this.sheets)

Expand Down

0 comments on commit 46eda6e

Please sign in to comment.