Skip to content

Commit

Permalink
[Chores] Exported default formatters (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Macri <macri.giuseppe@gmail.com>
  • Loading branch information
macrigiuseppe authored and heshan0131 committed Oct 26, 2020
1 parent 8bc11a3 commit 3d64c0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/utils/data-utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ export function normalizeSliderValue(
marks?: number[]
): number;
export function roundValToStep(minValue: number, step: number, val: number): number;

export type FieldFormatter = (value: any) => string;
export declare const FIELD_DISPLAY_FORMAT: {
[key: string]: FieldFormatter;
};
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

// UTILS
export {maybeToDate, roundValToStep, timeToUnixMilli} from './data-utils';
export {maybeToDate, roundValToStep, timeToUnixMilli, defaultFormatter, FIELD_DISPLAY_FORMAT} from './data-utils';
export {findPointFieldPairs, createNewDataEntry, datasetColorMaker} from './dataset-utils';
export {hexToRgb} from './color-utils';
export {errorNotification} from './notifications-utils';
Expand Down

0 comments on commit 3d64c0f

Please sign in to comment.