diff --git a/src/app/map/components/time-slider/time-slider.component.ts b/src/app/map/components/time-slider/time-slider.component.ts index 770e8546b..8ecf54841 100644 --- a/src/app/map/components/time-slider/time-slider.component.ts +++ b/src/app/map/components/time-slider/time-slider.component.ts @@ -1,7 +1,7 @@ import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core'; import {TimeExtent} from '../../interfaces/time-extent.interface'; import {TimeSliderConfiguration, TimeSliderLayerSource} from '../../../shared/interfaces/topic.interface'; -import {ManipulateType, UnitType} from 'dayjs'; +import {ManipulateTypeAlias as ManipulateType, UnitTypeAlias as UnitType} from '../../../shared/types/dayjs-alias-type'; import {TimeSliderService} from '../../services/time-slider.service'; import {TimeExtentUtils} from '../../../shared/utils/time-extent.utils'; import {MatDatepicker} from '@angular/material/datepicker'; diff --git a/src/app/shared/types/dayjs-alias-type.ts b/src/app/shared/types/dayjs-alias-type.ts new file mode 100644 index 000000000..b9b2b7fe3 --- /dev/null +++ b/src/app/shared/types/dayjs-alias-type.ts @@ -0,0 +1,4 @@ +import {ManipulateType, UnitType} from 'dayjs'; + +export type ManipulateTypeAlias = ManipulateType; +export type UnitTypeAlias = UnitType; diff --git a/src/app/shared/utils/dayjs.utils.ts b/src/app/shared/utils/dayjs.utils.ts index d42f6d90c..4def7b034 100644 --- a/src/app/shared/utils/dayjs.utils.ts +++ b/src/app/shared/utils/dayjs.utils.ts @@ -1,4 +1,5 @@ -import dayjs, {ManipulateType, UnitType} from 'dayjs'; +import dayjs from 'dayjs'; +import {ManipulateTypeAlias as ManipulateType, UnitTypeAlias as UnitType} from '../types/dayjs-alias-type'; import duration, {Duration} from 'dayjs/plugin/duration'; import utc from 'dayjs/plugin/utc'; import customParseFormat from 'dayjs/plugin/customParseFormat'; diff --git a/src/app/shared/utils/time-extent.utils.ts b/src/app/shared/utils/time-extent.utils.ts index 809efcb76..adbb3f355 100644 --- a/src/app/shared/utils/time-extent.utils.ts +++ b/src/app/shared/utils/time-extent.utils.ts @@ -1,5 +1,5 @@ import {Duration} from 'dayjs/plugin/duration'; -import {ManipulateType} from 'dayjs'; +import {ManipulateTypeAlias as ManipulateType} from '../types/dayjs-alias-type'; import {TimeSliderConfiguration} from '../interfaces/topic.interface'; import {TimeExtent} from '../../map/interfaces/time-extent.interface'; import {DayjsUtils} from './dayjs.utils';