You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DataSource typ in the options and in the setDataSource method is: T[] | ((currentYear: number) => T[] | Promise<T[]>) | ((currentYear: number, done: (result: T[]) => void) => void)
But the fetch parameters are: { year: number, startDate: Date, endDate: Date }
So there should be an interface DateSourceFetchParameters and the DataSource type should be: T[] | ((params: DateSourceFetchParameters) => T[] | Promise<T[]>) | ((params: DateSourceFetchParameters, done: (result: T[]) => void) => void)
The text was updated successfully, but these errors were encountered:
The DataSource typ in the options and in the setDataSource method is:
T[] | ((currentYear: number) => T[] | Promise<T[]>) | ((currentYear: number, done: (result: T[]) => void) => void)
But the fetch parameters are:
{ year: number, startDate: Date, endDate: Date }
So there should be an interface
DateSourceFetchParameters
and the DataSource type should be:T[] | ((params: DateSourceFetchParameters) => T[] | Promise<T[]>) | ((params: DateSourceFetchParameters, done: (result: T[]) => void) => void)
The text was updated successfully, but these errors were encountered: