Skip to content

Commit

Permalink
refactor(kit): maskitoTimeOptionsGenerator returns enriched `Maskit…
Browse files Browse the repository at this point in the history
…oTimeOptions`
  • Loading branch information
demensky committed Jun 13, 2024
1 parent c843bc5 commit 2b1e3bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/kit/src/lib/masks/time/time-mask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function maskitoTimeOptionsGenerator({
mode,
timeSegmentMaxValues = {},
step = 0,
}: MaskitoTimeOptions): Required<MaskitoOptions> {
}: MaskitoTimeOptions): Required<MaskitoOptions & MaskitoTimeOptions> {
const enrichedTimeSegmentMaxValues = {
...DEFAULT_TIME_SEGMENT_MAX_VALUES,
...timeSegmentMaxValues,
Expand All @@ -40,5 +40,8 @@ export function maskitoTimeOptionsGenerator({
}),
],
overwriteMode: 'replace',
mode,
timeSegmentMaxValues: enrichedTimeSegmentMaxValues,
step,
};
}

0 comments on commit 2b1e3bd

Please sign in to comment.