mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add missing prop of react-infinite-calendar (#36872)
This commit is contained in:
parent
289ba098a6
commit
752847f11e
1
types/react-infinite-calendar/index.d.ts
vendored
1
types/react-infinite-calendar/index.d.ts
vendored
@ -79,6 +79,7 @@ export interface ReactInfiniteCalendarProps {
|
||||
autoFocus?: boolean;
|
||||
tabIndex?: number;
|
||||
Component?: CalendarClass;
|
||||
interpolateSelection?: (date: Date, selected: Date[]) => Date[];
|
||||
}
|
||||
|
||||
export class Calendar extends React.Component<ReactInfiniteCalendarProps> {}
|
||||
|
||||
@ -63,6 +63,10 @@ const test: React.SFC = () => (
|
||||
rowHeight={40}
|
||||
autoFocus={false}
|
||||
tabIndex={1}
|
||||
interpolateSelection={(date: Date, selected: Date[]) => {
|
||||
console.log(date, selected);
|
||||
return [new Date()];
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user