Skip to content

Commit

Permalink
fix: update types (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczacharia authored and yotamberk committed Sep 26, 2019
1 parent 1d68d21 commit 727a94d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,18 @@ export interface DataItem {
subgroup?: SubgroupType;
title?: string;
type?: string;
editable?: boolean;
editable?: TimelineItemEditableType;
selectable?: boolean;
}

export interface SubGroupStackOptions {
[name: string]: boolean;
}

export interface SubGroupVisibilityOptions {
[name: string]: boolean;
}

export interface DataGroup {
className?: string;
content: string;
Expand All @@ -124,6 +129,7 @@ export interface DataGroup {
subgroupStack?: SubGroupStackOptions | boolean;
visible?: boolean;
showNested?: boolean;
subgroupVisibility?: SubGroupVisibilityOptions;
}

export interface DataGroupOptions {
Expand Down Expand Up @@ -272,9 +278,11 @@ export interface TimelineOptions {
onRemoveGroup?: TimelineOptionsGroupCallbackFunction;
order?: TimelineOptionsComparisonFunction;
orientation?: TimelineOptionsOrientationType;
preferZoom?: boolean;
rollingMode?: TimelineRollingModeOption;
rtl?: boolean;
selectable?: boolean;
sequentialSelection?: boolean;
showCurrentTime?: boolean;
showMajorLabels?: boolean;
showMinorLabels?: boolean;
Expand Down
10 changes: 9 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,18 @@ export interface DataItem {
subgroup?: SubgroupType;
title?: string;
type?: string;
editable?: boolean;
editable?: TimelineItemEditableType;
selectable?: boolean;
}

export interface SubGroupStackOptions {
[name: string]: boolean;
}

export interface SubGroupVisibilityOptions {
[name: string]: boolean;
}

export interface DataGroup {
className?: string;
content: string;
Expand All @@ -124,6 +129,7 @@ export interface DataGroup {
subgroupStack?: SubGroupStackOptions | boolean;
visible?: boolean;
showNested?: boolean;
subgroupVisibility?: SubGroupVisibilityOptions;
}

export interface DataGroupOptions {
Expand Down Expand Up @@ -272,9 +278,11 @@ export interface TimelineOptions {
onRemoveGroup?: TimelineOptionsGroupCallbackFunction;
order?: TimelineOptionsComparisonFunction;
orientation?: TimelineOptionsOrientationType;
preferZoom?: boolean;
rollingMode?: TimelineRollingModeOption;
rtl?: boolean;
selectable?: boolean;
sequentialSelection?: boolean;
showCurrentTime?: boolean;
showMajorLabels?: boolean;
showMinorLabels?: boolean;
Expand Down

0 comments on commit 727a94d

Please sign in to comment.