Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Jan 28, 2024
1 parent d79200c commit 5d75d20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export const wrapDataTable = (Table: React.FunctionComponent<any>): React.Functi
return replaceCellPositions;
};

const handleCalcMethod = (api: DataTableApi<any>): Array<{ row: number; column: number; calcResult?: number }> => {
const handleCalcMethod = (api: DataTableApi<any>): Array<{ row: number; column: number; calcResult: number }> => {
const calcData = getReplaceCellPositions(api);
const calculatedData: Array<{ row: number; column: number; calcResult?: number }> = [];
const calculatedData: Array<{ row: number; column: number; calcResult: number }> = [];
calcData.forEach(({ row, column, methodType }) => {
const calcResult = CalcMethod[methodType](api, { row, column });
calculatedData.push({ row, column, calcResult });
Expand Down Expand Up @@ -108,7 +108,7 @@ export const wrapDataTable = (Table: React.FunctionComponent<any>): React.Functi
<button id={buttonId} onClick={enableDataTable} className="btn btn-sm btn-secondary d-none gpdt-enabling-datatable">
Enable DataTable
</button>
<Table {...props}>{children}</Table>
<Table {...props}>{children}</Table>qq
</div>
);
};
Expand Down

0 comments on commit 5d75d20

Please sign in to comment.