Skip to content

Commit

Permalink
[FIX] types: export types needed for .d.ts file
Browse files Browse the repository at this point in the history
The process of creating a .d.ts file for o-spreadsheet was not working
because the types needed for the file were not being exported.

closes #5000

Task: 0
Signed-off-by: Rémi Rahir (rar) <[email protected]>
  • Loading branch information
pro-odoo committed Sep 18, 2024
1 parent 41563c1 commit c0c8f9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/helpers/pivot/pivot_presentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type DomainGroups<T> = { [colDomain: string]: { [rowDomain: string]: T } };
* to all pivots, regardless of the specific pivot implementation.
* Examples of such features include calculated measures or "Show value as" options.
*/
export function withPivotPresentationLayer(PivotClass: PivotUIConstructor) {
export default function (PivotClass: PivotUIConstructor) {
class PivotPresentationLayer extends PivotClass {
private getters: Getters;
private cache: Record<string, FunctionResultObject> = {};
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ui_core_views/pivot_ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
getFirstPivotFunction,
getNumberOfPivotFunctions,
} from "../../helpers/pivot/pivot_composer_helpers";
import { withPivotPresentationLayer } from "../../helpers/pivot/pivot_presentation";
import withPivotPresentationLayer from "../../helpers/pivot/pivot_presentation";
import { pivotRegistry } from "../../helpers/pivot/pivot_registry";
import { resetMapValueDimensionDate } from "../../helpers/pivot/spreadsheet_pivot/date_spreadsheet_pivot";
import { EMPTY_PIVOT_CELL } from "../../helpers/pivot/table_spreadsheet_pivot";
Expand Down
2 changes: 1 addition & 1 deletion src/types/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ export interface SetDecimalCommand extends TargetDependentCommand {
step: SetDecimalStep;
}

interface SetContextualFormatCommand extends TargetDependentCommand {
export interface SetContextualFormatCommand extends TargetDependentCommand {
type: "SET_FORMATTING_WITH_PIVOT";
format: Format;
}
Expand Down

0 comments on commit c0c8f9e

Please sign in to comment.