@@ -3,7 +3,7 @@ import { assertNumber, bigint } from '../protocol/serialization';
3
3
import { Entry } from './entry' ;
4
4
import { OutputElementStyle } from './styles' ;
5
5
6
- export const TimeGraphEntrySchema : Schema = {
6
+ export const TimeGraphEntrySchema : Schema < TimeGraphEntry > = {
7
7
end : bigint ,
8
8
id : assertNumber ,
9
9
parentId : assertNumber ,
@@ -25,7 +25,7 @@ export interface TimeGraphEntry extends Entry {
25
25
end : bigint ;
26
26
}
27
27
28
- const TimeGraphStateSchema : Schema = {
28
+ const TimeGraphStateSchema : Schema < TimeGraphState > = {
29
29
end : bigint ,
30
30
start : bigint ,
31
31
tags : assertNumber ,
@@ -61,7 +61,7 @@ export interface TimeGraphState {
61
61
style ?: OutputElementStyle ;
62
62
}
63
63
64
- export const TimeGraphRowSchema : Schema = {
64
+ export const TimeGraphRowSchema : Schema < TimeGraphRow > = {
65
65
entryId : assertNumber ,
66
66
states : [ TimeGraphStateSchema ] ,
67
67
} ;
@@ -81,7 +81,7 @@ export interface TimeGraphRow {
81
81
states : TimeGraphState [ ] ;
82
82
}
83
83
84
- export const TimeGraphModelSchema : Schema = {
84
+ export const TimeGraphModelSchema : Schema < TimeGraphModel > = {
85
85
rows : [ TimeGraphRowSchema ] ,
86
86
} ;
87
87
@@ -92,7 +92,7 @@ export interface TimeGraphModel {
92
92
rows : TimeGraphRow [ ] ;
93
93
}
94
94
95
- export const TimeGraphArrowSchema : Schema = {
95
+ export const TimeGraphArrowSchema : Schema < TimeGraphArrow > = {
96
96
end : bigint ,
97
97
sourceId : assertNumber ,
98
98
start : bigint ,
0 commit comments