UNPKG

repick-core

Version:

8 lines (7 loc) 828 B
import { RepickContext, RepickDay, RepickState, RepickOptions, RepickStateSelected } from './types'; export declare function buildCalendarDay<State extends RepickState<any>, Extra extends { [key: string]: any; } = {}>(isSelected: (selected: State['selected'], date: Date) => boolean, extraFn: (state: State, date: Date) => Extra): (state: State, currentMonth: Date, date: Date, options?: RepickOptions<RepickStateSelected<State>>) => RepickDay<Extra>; export declare function buildContext<State extends RepickState<any>, Extra extends { [key: string]: any; } = {}>(buildCalendarDay: (state: State, currentMonth: Date, date: Date, options: RepickOptions<RepickStateSelected<State>>) => RepickDay<Extra>): (state: State, options?: RepickOptions<RepickStateSelected<State>>) => RepickContext<any, RepickDay<Extra>>;