Skip to content

Commit

Permalink
Make 'template' optional in 'TimelineTooltipOption' (#177)
Browse files Browse the repository at this point in the history
`TimelineTooltipOption` requires you to define a `template`, but it already has a default value in the documentation. Not specifying the `template` still works as expected when changing the type to an optional and not defining it.
  • Loading branch information
EricKit authored and yotamberk committed Nov 10, 2019
1 parent 9fc7c3d commit 92808db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export interface TimelineTooltipOption {
followMouse?: boolean;
overflowMethod?: 'cap' | 'flip' | 'none';
delay?: number;
template: (item: TimelineItem, editedData?: TimelineItem) => string;
template?: (item: TimelineItem, editedData?: TimelineItem) => string;
}

export type TimelineOptionsConfigureFunction = (option: string, path: string[]) => boolean;
Expand Down

0 comments on commit 92808db

Please sign in to comment.