diff --git a/docs/timeline/index.html b/docs/timeline/index.html index b777065786..9c843a67da 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -668,8 +668,8 @@
function format({ - minorLabels: Function(date: Date, scale: Number, step: Number), - majorLabels: Function(date: Date, scale: Number, step: Number) + minorLabels: Function(date: Moment, scale: Number, step: Number), + majorLabels: Function(date: Moment, scale: Number, step: Number) }diff --git a/types/index.d.ts b/types/index.d.ts index 77448d8387..a132e76100 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -144,7 +144,7 @@ export interface TimelineEditableOption { overrideItems?: boolean; } -export type TimelineFormatLabelsFunction = (date: Date, scale: string, step: number) => string; +export type TimelineFormatLabelsFunction = (date: Moment, scale: string, step: number) => string; export interface TimelineFormatLabelsOption { millisecond?: string;