Skip to content

Commit

Permalink
fix: make predefined time duration service public
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshsharma committed Dec 14, 2023
1 parent 44f1d65 commit 8d23d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/common/src/time/interval-duration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class IntervalDurationService {
return durations[0];
}

private getAvailableIntervals(timeRange: TimeRange, minDataPoints: number, maxDataPoints: number): TimeDuration[] {
public getAvailableIntervals(timeRange: TimeRange, minDataPoints: number, maxDataPoints: number): TimeDuration[] {
const timeRangeDuration = this.timeDurationService.getTimeRangeDuration(timeRange);

const availableIntervals = IntervalDurationService.PREDEFINED_INTERVALS.filter(duration =>
Expand Down
1 change: 1 addition & 0 deletions projects/components/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ export * from './time-picker/time-picker.module';
// Time Range
export * from './time-range/time-range.component';
export * from './time-range/time-range.module';
export * from './time-range/predefined-time-duration.service';

// Titled Content
export {
Expand Down

0 comments on commit 8d23d05

Please sign in to comment.