Skip to content

Commit

Permalink
Fix AddTable parameter types (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
spearmootz committed May 15, 2023
1 parent 8c23ef0 commit 958999d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ declare module 'excelize-wasm' {
* TableOptions directly maps the format settings of the table.
*/
export type TableOptions = {
Range: string;
Name?: string;
StyleName?: string;
ShowFirstColumn?: boolean;
Expand Down Expand Up @@ -981,7 +982,7 @@ declare module 'excelize-wasm' {
* @param rangeRef The top-left and right-bottom cell range reference
* @param opts The table options
*/
AddTable(sheet: string, rangeRef: string, opts: TableOptions): { error: string | null }
AddTable(sheet: string, opts: TableOptions): { error: string | null }

/**
* AutoFilter provides the method to add auto filter in a worksheet by
Expand Down

0 comments on commit 958999d

Please sign in to comment.