@@ -21,85 +21,87 @@ import {NumberOrInteger} from './graph-types';
21
21
import Integer from "./integer" ;
22
22
23
23
declare class Duration < T extends NumberOrInteger = Integer > {
24
- months : T ;
25
- days : T ;
26
- seconds : T ;
27
- nanoseconds : T ;
24
+
25
+ readonly months : T ;
26
+ readonly days : T ;
27
+ readonly seconds : T ;
28
+ readonly nanoseconds : T ;
28
29
29
30
constructor ( months : T , days : T , seconds : T , nanoseconds : T )
30
31
}
31
32
32
33
declare class LocalTime < T extends NumberOrInteger = Integer > {
33
- hour : T ;
34
- minute : T ;
35
- second : T ;
36
- nanosecond : T ;
34
+
35
+ readonly hour : T ;
36
+ readonly minute : T ;
37
+ readonly second : T ;
38
+ readonly nanosecond : T ;
37
39
38
40
constructor ( hour : T , minute : T , second : T , nanosecond : T ) ;
39
41
}
40
42
41
43
declare class Time < T extends NumberOrInteger = Integer > {
42
44
43
- localTime : LocalTime < T > ;
44
- offsetSeconds : T ;
45
- hour : T ;
46
- minute : T ;
47
- second : T ;
48
- nanosecond : T ;
45
+ readonly localTime : LocalTime < T > ;
46
+ readonly offsetSeconds : T ;
47
+ readonly hour : T ;
48
+ readonly minute : T ;
49
+ readonly second : T ;
50
+ readonly nanosecond : T ;
49
51
50
52
constructor ( localTime : LocalTime < T > , offsetSeconds : T ) ;
51
53
}
52
54
53
55
declare class Date < T extends NumberOrInteger = Integer > {
54
56
55
- year : T ;
56
- month : T ;
57
- day : T ;
57
+ readonly year : T ;
58
+ readonly month : T ;
59
+ readonly day : T ;
58
60
59
61
constructor ( year : T , month : T , day : T ) ;
60
62
}
61
63
62
64
declare class LocalDateTime < T extends NumberOrInteger = Integer > {
63
65
64
- localDate : Date < T > ;
65
- localTime : LocalTime < T > ;
66
- year : T ;
67
- month : T ;
68
- day : T ;
69
- hour : T ;
70
- minute : T ;
71
- second : T ;
72
- nanosecond : T ;
66
+ readonly localDate : Date < T > ;
67
+ readonly localTime : LocalTime < T > ;
68
+ readonly year : T ;
69
+ readonly month : T ;
70
+ readonly day : T ;
71
+ readonly hour : T ;
72
+ readonly minute : T ;
73
+ readonly second : T ;
74
+ readonly nanosecond : T ;
73
75
74
76
constructor ( localDate : Date < T > , localTime : LocalTime < T > ) ;
75
77
}
76
78
77
79
declare class DateTimeWithZoneOffset < T extends NumberOrInteger = Integer > {
78
80
79
- localDateTime : LocalDateTime < T > ;
80
- offsetSeconds : T ;
81
- year : T ;
82
- month : T ;
83
- day : T ;
84
- hour : T ;
85
- minute : T ;
86
- second : T ;
87
- nanosecond : T ;
81
+ readonly localDateTime : LocalDateTime < T > ;
82
+ readonly offsetSeconds : T ;
83
+ readonly year : T ;
84
+ readonly month : T ;
85
+ readonly day : T ;
86
+ readonly hour : T ;
87
+ readonly minute : T ;
88
+ readonly second : T ;
89
+ readonly nanosecond : T ;
88
90
89
91
constructor ( localDateTime : LocalDateTime < T > , offsetSeconds : T ) ;
90
92
}
91
93
92
94
declare class DateTimeWithZoneId < T extends NumberOrInteger = Integer > {
93
95
94
- localDateTime : LocalDateTime < T > ;
95
- zoneId : string ;
96
- year : T ;
97
- month : T ;
98
- day : T ;
99
- hour : T ;
100
- minute : T ;
101
- second : T ;
102
- nanosecond : T ;
96
+ readonly localDateTime : LocalDateTime < T > ;
97
+ readonly zoneId : string ;
98
+ readonly year : T ;
99
+ readonly month : T ;
100
+ readonly day : T ;
101
+ readonly hour : T ;
102
+ readonly minute : T ;
103
+ readonly second : T ;
104
+ readonly nanosecond : T ;
103
105
104
106
constructor ( localDateTime : LocalDateTime < T > , zoneId : string ) ;
105
107
}
0 commit comments