ITADN

Date type allows only String

#4OpenBanjoBenjo 创建于 2025-03-18
B
BanjoBenjocommented
The Documentation states that the TimelineItem date-prop accepts Date | string | number. Also in the Example Code a new Data() is passed. The TimelineItem Type on the other hand accepts only strings. ` export interface TimelineElement { id: number; date: string; title: string; ... ` Am i missing something?
1 条评论