Debian Codegraph @

test/types.d.ts

raw symbols SCIP
1 // GENERATED CODE - DO NOT MODIFY BY HAND
2 declare var $app: c.Handler;type _TygojaDict = { [key:string | number | symbol]: any; }
3 type _TygojaAny = any
4
5 /**
6 * package a docs
7 * lorem ipsum dolor...
8 */
9 namespace a {
10 interface Empty {
11 [key:string]: any;
12 }
13 /**
14 * unexported interface
15 */
16 interface interfaceA<T> {
17 [key:string]: any;
18 /**
19 * some comment
20 */
21 /**
22 * some comment above the function
23 */
24 Method0(): void
25 Method1(): string // inline comment
26 /**
27 * multi
28 * line
29 * comment
30 */
31 Method2(argA: string, argB: string): [T, number]
32 Method3(argA: number, ...argB: string[]): [T, Array<string>]
33 }
34 /**
35 * multi
36 * line
37 * comment
38 */
39 interface InterfaceB {
40 [key:string]: any;
41 /**
42 * "replace" Method0 from interfaceA
43 */
44 Method0(): void
45 CustomMethod(): time.Time
46 }
47 interface unexported {
48 Field1: string
49 }
50 /**
51 * structA comment
52 */
53 interface structA {
54 Field1: string // after
55 /**
56 * multi
57 * line
58 * comment
59 * with union type
60 */
61 Field2: string|Array<number>
62 }
63 interface structA {
64 /**
65 * method comment
66 */
67 Method1(arg1: number): void
68 }
69 interface structA {
70 Method2(arg1: number, ...arg2: string[]): void
71 }
72 /**
73 * structB comment
74 */
75 type _snAOjId = unexported&structA
76 interface StructB<T> extends _snAOjId {
77 Field3: T
78 }
79 interface StructB<T> {
80 /**
81 * StructB.Method3 comment
82 */
83 Method3(arg1: number): [number, string]
84 }
85 /**
86 * structC with multiple mixed generic types
87 */
88 interface StructC<A,B,C> {
89 Field4: A
90 Field5: B
91 Field6: C
92 }
93 interface StructC<A, B, C> {
94 /**
95 * StructC.Method4 comment
96 */
97 Method4(arg1: A): [B, C]
98 }
99 /**
100 * type comment
101 */
102 interface SliceAlias<T> extends Array<T>{} // after
103 /**
104 * multi
105 * line
106 * comment
107 */
108 interface Handler<T> {(): [T, number] } // after
109 }
110
111 /**
112 * package b
113 */
114 namespace b {
115 interface Func1 {
116 /**
117 * single comment
118 */
119 (): void
120 }
121 interface Func2<T> {
122 /**
123 * multi
124 * line
125 * comment
126 */
127 (arg1: number): T
128 }
129 interface Func3<A,B,C> {
130 /**
131 * function with multiple generic types
132 */
133 (arg1: A, arg2: B, arg3: number): [A, C]
134 }
135 interface Func4 {
136 /**
137 * function that returns a function
138 */
139 (arg1: number): () => number
140 }
141 interface Func5 {
142 /**
143 * function with ommited argument types
144 */
145 (arg0: string, arg1: number, arg2: number): void
146 }
147 interface Func6 {
148 /**
149 * function with reserved argument name and variadic type
150 */
151 (_arg00: string, ...optional: string[]): void
152 }
153 interface Func7 {
154 /**
155 * function with ommited argument names
156 */
157 (_arg0: string, _arg1: number, ..._arg2: boolean[]): void
158 }
159 interface Func8 {
160 /**
161 * function with named return values
162 */
163 (): [number, string]
164 }
165 interface Func9 {
166 /**
167 * function with shortened return values
168 */
169 (): [string, string]
170 }
171 interface Func10 {
172 /**
173 * function with named and shortened return values
174 */
175 (): [number, string, string]
176 }
177 }
178
179 namespace c {
180 /**
181 * func type comment
182 */
183 interface Handler {(): string } // after
184 /**
185 * Example:
186 *
187 * ```
188 * Some
189 * code
190 * sample
191 * ```
192 */
193 interface Example2 {
194 Title: string
195 Json: Raw
196 Bytes: string|Array<number> // should be union
197 }
198 interface Example2 {
199 DemoEx2(): time.Time
200 }
201 interface Example2 {
202 /**
203 * Pointer as argument vs return type
204 */
205 DemoEx3(arg: Example1): (Example1)
206 }
207 interface Example2 {
208 /**
209 * ommited types
210 */
211 DemoEx4(n1: string, n2: string, n3: string): void
212 }
213 interface Example2 {
214 /**
215 * ommited names
216 */
217 DemoEx5(_arg0: string, _arg1: number): void
218 }
219 interface Example2 {
220 /**
221 * named return values
222 */
223 DemoEx6(): [number, string]
224 }
225 interface Example2 {
226 /**
227 * shortened return values
228 */
229 DemoEx7(): [string, string]
230 }
231 interface Example2 {
232 /**
233 * named and shortened return values
234 */
235 DemoEx8(): [number, string, string]
236 }
237 }
238
239 /**
240 * Package time provides functionality for measuring and displaying time.
241 *
242 * The calendrical calculations always assume a Gregorian calendar, with
243 * no leap seconds.
244 *
245 * # Monotonic Clocks
246 *
247 * Operating systems provide both a “wall clock,” which is subject to
248 * changes for clock synchronization, and a “monotonic clock,” which is
249 * not. The general rule is that the wall clock is for telling time and
250 * the monotonic clock is for measuring time. Rather than split the API,
251 * in this package the Time returned by [time.Now] contains both a wall
252 * clock reading and a monotonic clock reading; later time-telling
253 * operations use the wall clock reading, but later time-measuring
254 * operations, specifically comparisons and subtractions, use the
255 * monotonic clock reading.
256 *
257 * For example, this code always computes a positive elapsed time of
258 * approximately 20 milliseconds, even if the wall clock is changed during
259 * the operation being timed:
260 *
261 * ```
262 * start := time.Now()
263 * ... operation that takes 20 milliseconds ...
264 * t := time.Now()
265 * elapsed := t.Sub(start)
266 * ```
267 *
268 * Other idioms, such as [time.Since](start), [time.Until](deadline), and
269 * time.Now().Before(deadline), are similarly robust against wall clock
270 * resets.
271 *
272 * The rest of this section gives the precise details of how operations
273 * use monotonic clocks, but understanding those details is not required
274 * to use this package.
275 *
276 * The Time returned by time.Now contains a monotonic clock reading.
277 * If Time t has a monotonic clock reading, t.Add adds the same duration to
278 * both the wall clock and monotonic clock readings to compute the result.
279 * Because t.AddDate(y, m, d), t.Round(d), and t.Truncate(d) are wall time
280 * computations, they always strip any monotonic clock reading from their results.
281 * Because t.In, t.Local, and t.UTC are used for their effect on the interpretation
282 * of the wall time, they also strip any monotonic clock reading from their results.
283 * The canonical way to strip a monotonic clock reading is to use t = t.Round(0).
284 *
285 * If Times t and u both contain monotonic clock readings, the operations
286 * t.After(u), t.Before(u), t.Equal(u), t.Compare(u), and t.Sub(u) are carried out
287 * using the monotonic clock readings alone, ignoring the wall clock
288 * readings. If either t or u contains no monotonic clock reading, these
289 * operations fall back to using the wall clock readings.
290 *
291 * On some systems the monotonic clock will stop if the computer goes to sleep.
292 * On such a system, t.Sub(u) may not accurately reflect the actual
293 * time that passed between t and u. The same applies to other functions and
294 * methods that subtract times, such as [Since], [Until], [Before], [After],
295 * [Add], [Sub], [Equal] and [Compare]. In some cases, you may need to strip
296 * the monotonic clock to get accurate results.
297 *
298 * Because the monotonic clock reading has no meaning outside
299 * the current process, the serialized forms generated by t.GobEncode,
300 * t.MarshalBinary, t.MarshalJSON, and t.MarshalText omit the monotonic
301 * clock reading, and t.Format provides no format for it. Similarly, the
302 * constructors [time.Date], [time.Parse], [time.ParseInLocation], and [time.Unix],
303 * as well as the unmarshalers t.GobDecode, t.UnmarshalBinary.
304 * t.UnmarshalJSON, and t.UnmarshalText always create times with
305 * no monotonic clock reading.
306 *
307 * The monotonic clock reading exists only in [Time] values. It is not
308 * a part of [Duration] values or the Unix times returned by t.Unix and
309 * friends.
310 *
311 * Note that the Go == operator compares not just the time instant but
312 * also the [Location] and the monotonic clock reading. See the
313 * documentation for the Time type for a discussion of equality
314 * testing for Time values.
315 *
316 * For debugging, the result of t.String does include the monotonic
317 * clock reading if present. If t != u because of different monotonic clock readings,
318 * that difference will be visible when printing t.String() and u.String().
319 *
320 * # Timer Resolution
321 *
322 * [Timer] resolution varies depending on the Go runtime, the operating system
323 * and the underlying hardware.
324 * On Unix, the resolution is ~1ms.
325 * On Windows version 1803 and newer, the resolution is ~0.5ms.
326 * On older Windows versions, the default resolution is ~16ms, but
327 * a higher resolution may be requested using [golang.org/x/sys/windows.TimeBeginPeriod].
328 */
329 namespace time {
330 interface Time {
331 /**
332 * String returns the time formatted using the format string
333 *
334 * ```
335 * "2006-01-02 15:04:05.999999999 -0700 MST"
336 * ```
337 *
338 * If the time has a monotonic clock reading, the returned string
339 * includes a final field "m=±<value>", where value is the monotonic
340 * clock reading formatted as a decimal number of seconds.
341 *
342 * The returned string is meant for debugging; for a stable serialized
343 * representation, use t.MarshalText, t.MarshalBinary, or t.Format
344 * with an explicit format string.
345 */
346 String(): string
347 }
348 interface Time {
349 /**
350 * GoString implements [fmt.GoStringer] and formats t to be printed in Go source
351 * code.
352 */
353 GoString(): string
354 }
355 interface Time {
356 /**
357 * Format returns a textual representation of the time value formatted according
358 * to the layout defined by the argument. See the documentation for the
359 * constant called [Layout] to see how to represent the layout format.
360 *
361 * The executable example for [Time.Format] demonstrates the working
362 * of the layout string in detail and is a good reference.
363 */
364 Format(layout: string): string
365 }
366 interface Time {
367 /**
368 * AppendFormat is like [Time.Format] but appends the textual
369 * representation to b and returns the extended buffer.
370 */
371 AppendFormat(b: string|Array<number>, layout: string): string|Array<number>
372 }
373 /**
374 * A Time represents an instant in time with nanosecond precision.
375 *
376 * Programs using times should typically store and pass them as values,
377 * not pointers. That is, time variables and struct fields should be of
378 * type [time.Time], not *time.Time.
379 *
380 * A Time value can be used by multiple goroutines simultaneously except
381 * that the methods [Time.GobDecode], [Time.UnmarshalBinary], [Time.UnmarshalJSON] and
382 * [Time.UnmarshalText] are not concurrency-safe.
383 *
384 * Time instants can be compared using the [Time.Before], [Time.After], and [Time.Equal] methods.
385 * The [Time.Sub] method subtracts two instants, producing a [Duration].
386 * The [Time.Add] method adds a Time and a Duration, producing a Time.
387 *
388 * The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.
389 * As this time is unlikely to come up in practice, the [Time.IsZero] method gives
390 * a simple way of detecting a time that has not been initialized explicitly.
391 *
392 * Each time has an associated [Location]. The methods [Time.Local], [Time.UTC], and Time.In return a
393 * Time with a specific Location. Changing the Location of a Time value with
394 * these methods does not change the actual instant it represents, only the time
395 * zone in which to interpret it.
396 *
397 * Representations of a Time value saved by the [Time.GobEncode], [Time.MarshalBinary],
398 * [Time.MarshalJSON], and [Time.MarshalText] methods store the [Time.Location]'s offset, but not
399 * the location name. They therefore lose information about Daylight Saving Time.
400 *
401 * In addition to the required “wall clock” reading, a Time may contain an optional
402 * reading of the current process's monotonic clock, to provide additional precision
403 * for comparison or subtraction.
404 * See the “Monotonic Clocks” section in the package documentation for details.
405 *
406 * Note that the Go == operator compares not just the time instant but also the
407 * Location and the monotonic clock reading. Therefore, Time values should not
408 * be used as map or database keys without first guaranteeing that the
409 * identical Location has been set for all values, which can be achieved
410 * through use of the UTC or Local method, and that the monotonic clock reading
411 * has been stripped by setting t = t.Round(0). In general, prefer t.Equal(u)
412 * to t == u, since t.Equal uses the most accurate comparison available and
413 * correctly handles the case when only one of its arguments has a monotonic
414 * clock reading.
415 */
416 interface Time {
417 }
418 interface Time {
419 /**
420 * After reports whether the time instant t is after u.
421 */
422 After(u: Time): boolean
423 }
424 interface Time {
425 /**
426 * Before reports whether the time instant t is before u.
427 */
428 Before(u: Time): boolean
429 }
430 interface Time {
431 /**
432 * Compare compares the time instant t with u. If t is before u, it returns -1;
433 * if t is after u, it returns +1; if they're the same, it returns 0.
434 */
435 Compare(u: Time): number
436 }
437 interface Time {
438 /**
439 * Equal reports whether t and u represent the same time instant.
440 * Two times can be equal even if they are in different locations.
441 * For example, 6:00 +0200 and 4:00 UTC are Equal.
442 * See the documentation on the Time type for the pitfalls of using == with
443 * Time values; most code should use Equal instead.
444 */
445 Equal(u: Time): boolean
446 }
447 interface Time {
448 /**
449 * IsZero reports whether t represents the zero time instant,
450 * January 1, year 1, 00:00:00 UTC.
451 */
452 IsZero(): boolean
453 }
454 interface Time {
455 /**
456 * Date returns the year, month, and day in which t occurs.
457 */
458 Date(): [number, Month, number]
459 }
460 interface Time {
461 /**
462 * Year returns the year in which t occurs.
463 */
464 Year(): number
465 }
466 interface Time {
467 /**
468 * Month returns the month of the year specified by t.
469 */
470 Month(): Month
471 }
472 interface Time {
473 /**
474 * Day returns the day of the month specified by t.
475 */
476 Day(): number
477 }
478 interface Time {
479 /**
480 * Weekday returns the day of the week specified by t.
481 */
482 Weekday(): Weekday
483 }
484 interface Time {
485 /**
486 * ISOWeek returns the ISO 8601 year and week number in which t occurs.
487 * Week ranges from 1 to 53. Jan 01 to Jan 03 of year n might belong to
488 * week 52 or 53 of year n-1, and Dec 29 to Dec 31 might belong to week 1
489 * of year n+1.
490 */
491 ISOWeek(): [number, number]
492 }
493 interface Time {
494 /**
495 * Clock returns the hour, minute, and second within the day specified by t.
496 */
497 Clock(): [number, number, number]
498 }
499 interface Time {
500 /**
501 * Hour returns the hour within the day specified by t, in the range [0, 23].
502 */
503 Hour(): number
504 }
505 interface Time {
506 /**
507 * Minute returns the minute offset within the hour specified by t, in the range [0, 59].
508 */
509 Minute(): number
510 }
511 interface Time {
512 /**
513 * Second returns the second offset within the minute specified by t, in the range [0, 59].
514 */
515 Second(): number
516 }
517 interface Time {
518 /**
519 * Nanosecond returns the nanosecond offset within the second specified by t,
520 * in the range [0, 999999999].
521 */
522 Nanosecond(): number
523 }
524 interface Time {
525 /**
526 * YearDay returns the day of the year specified by t, in the range [1,365] for non-leap years,
527 * and [1,366] in leap years.
528 */
529 YearDay(): number
530 }
531 interface Time {
532 /**
533 * Add returns the time t+d.
534 */
535 Add(d: Duration): Time
536 }
537 interface Time {
538 /**
539 * Sub returns the duration t-u. If the result exceeds the maximum (or minimum)
540 * value that can be stored in a [Duration], the maximum (or minimum) duration
541 * will be returned.
542 * To compute t-d for a duration d, use t.Add(-d).
543 */
544 Sub(u: Time): Duration
545 }
546 interface Time {
547 /**
548 * AddDate returns the time corresponding to adding the
549 * given number of years, months, and days to t.
550 * For example, AddDate(-1, 2, 3) applied to January 1, 2011
551 * returns March 4, 2010.
552 *
553 * Note that dates are fundamentally coupled to timezones, and calendrical
554 * periods like days don't have fixed durations. AddDate uses the Location of
555 * the Time value to determine these durations. That means that the same
556 * AddDate arguments can produce a different shift in absolute time depending on
557 * the base Time value and its Location. For example, AddDate(0, 0, 1) applied
558 * to 12:00 on March 27 always returns 12:00 on March 28. At some locations and
559 * in some years this is a 24 hour shift. In others it's a 23 hour shift due to
560 * daylight savings time transitions.
561 *
562 * AddDate normalizes its result in the same way that Date does,
563 * so, for example, adding one month to October 31 yields
564 * December 1, the normalized form for November 31.
565 */
566 AddDate(years: number, months: number, days: number): Time
567 }
568 interface Time {
569 /**
570 * UTC returns t with the location set to UTC.
571 */
572 UTC(): Time
573 }
574 interface Time {
575 /**
576 * Local returns t with the location set to local time.
577 */
578 Local(): Time
579 }
580 interface Time {
581 /**
582 * In returns a copy of t representing the same time instant, but
583 * with the copy's location information set to loc for display
584 * purposes.
585 *
586 * In panics if loc is nil.
587 */
588 In(loc: Location): Time
589 }
590 interface Time {
591 /**
592 * Location returns the time zone information associated with t.
593 */
594 Location(): (Location)
595 }
596 interface Time {
597 /**
598 * Zone computes the time zone in effect at time t, returning the abbreviated
599 * name of the zone (such as "CET") and its offset in seconds east of UTC.
600 */
601 Zone(): [string, number]
602 }
603 interface Time {
604 /**
605 * ZoneBounds returns the bounds of the time zone in effect at time t.
606 * The zone begins at start and the next zone begins at end.
607 * If the zone begins at the beginning of time, start will be returned as a zero Time.
608 * If the zone goes on forever, end will be returned as a zero Time.
609 * The Location of the returned times will be the same as t.
610 */
611 ZoneBounds(): [Time, Time]
612 }
613 interface Time {
614 /**
615 * Unix returns t as a Unix time, the number of seconds elapsed
616 * since January 1, 1970 UTC. The result does not depend on the
617 * location associated with t.
618 * Unix-like operating systems often record time as a 32-bit
619 * count of seconds, but since the method here returns a 64-bit
620 * value it is valid for billions of years into the past or future.
621 */
622 Unix(): number
623 }
624 interface Time {
625 /**
626 * UnixMilli returns t as a Unix time, the number of milliseconds elapsed since
627 * January 1, 1970 UTC. The result is undefined if the Unix time in
628 * milliseconds cannot be represented by an int64 (a date more than 292 million
629 * years before or after 1970). The result does not depend on the
630 * location associated with t.
631 */
632 UnixMilli(): number
633 }
634 interface Time {
635 /**
636 * UnixMicro returns t as a Unix time, the number of microseconds elapsed since
637 * January 1, 1970 UTC. The result is undefined if the Unix time in
638 * microseconds cannot be represented by an int64 (a date before year -290307 or
639 * after year 294246). The result does not depend on the location associated
640 * with t.
641 */
642 UnixMicro(): number
643 }
644 interface Time {
645 /**
646 * UnixNano returns t as a Unix time, the number of nanoseconds elapsed
647 * since January 1, 1970 UTC. The result is undefined if the Unix time
648 * in nanoseconds cannot be represented by an int64 (a date before the year
649 * 1678 or after 2262). Note that this means the result of calling UnixNano
650 * on the zero Time is undefined. The result does not depend on the
651 * location associated with t.
652 */
653 UnixNano(): number
654 }
655 interface Time {
656 /**
657 * MarshalBinary implements the encoding.BinaryMarshaler interface.
658 */
659 MarshalBinary(): string|Array<number>
660 }
661 interface Time {
662 /**
663 * UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
664 */
665 UnmarshalBinary(data: string|Array<number>): void
666 }
667 interface Time {
668 /**
669 * GobEncode implements the gob.GobEncoder interface.
670 */
671 GobEncode(): string|Array<number>
672 }
673 interface Time {
674 /**
675 * GobDecode implements the gob.GobDecoder interface.
676 */
677 GobDecode(data: string|Array<number>): void
678 }
679 interface Time {
680 /**
681 * MarshalJSON implements the [json.Marshaler] interface.
682 * The time is a quoted string in the RFC 3339 format with sub-second precision.
683 * If the timestamp cannot be represented as valid RFC 3339
684 * (e.g., the year is out of range), then an error is reported.
685 */
686 MarshalJSON(): string|Array<number>
687 }
688 interface Time {
689 /**
690 * UnmarshalJSON implements the [json.Unmarshaler] interface.
691 * The time must be a quoted string in the RFC 3339 format.
692 */
693 UnmarshalJSON(data: string|Array<number>): void
694 }
695 interface Time {
696 /**
697 * MarshalText implements the [encoding.TextMarshaler] interface.
698 * The time is formatted in RFC 3339 format with sub-second precision.
699 * If the timestamp cannot be represented as valid RFC 3339
700 * (e.g., the year is out of range), then an error is reported.
701 */
702 MarshalText(): string|Array<number>
703 }
704 interface Time {
705 /**
706 * UnmarshalText implements the [encoding.TextUnmarshaler] interface.
707 * The time must be in the RFC 3339 format.
708 */
709 UnmarshalText(data: string|Array<number>): void
710 }
711 interface Time {
712 /**
713 * IsDST reports whether the time in the configured location is in Daylight Savings Time.
714 */
715 IsDST(): boolean
716 }
717 interface Time {
718 /**
719 * Truncate returns the result of rounding t down to a multiple of d (since the zero time).
720 * If d <= 0, Truncate returns t stripped of any monotonic clock reading but otherwise unchanged.
721 *
722 * Truncate operates on the time as an absolute duration since the
723 * zero time; it does not operate on the presentation form of the
724 * time. Thus, Truncate(Hour) may return a time with a non-zero
725 * minute, depending on the time's Location.
726 */
727 Truncate(d: Duration): Time
728 }
729 interface Time {
730 /**
731 * Round returns the result of rounding t to the nearest multiple of d (since the zero time).
732 * The rounding behavior for halfway values is to round up.
733 * If d <= 0, Round returns t stripped of any monotonic clock reading but otherwise unchanged.
734 *
735 * Round operates on the time as an absolute duration since the
736 * zero time; it does not operate on the presentation form of the
737 * time. Thus, Round(Hour) may return a time with a non-zero
738 * minute, depending on the time's Location.
739 */
740 Round(d: Duration): Time
741 }
742 }
743
744 namespace c {
745 interface Raw extends Array<number>{}
746 interface Example1 {
747 Name: string
748 }
749 interface Example1 {
750 DemoEx1(): string
751 }
752 }
753
754 namespace time {
755 /**
756 * A Month specifies a month of the year (January = 1, ...).
757 */
758 interface Month extends Number{}
759 interface Month {
760 /**
761 * String returns the English name of the month ("January", "February", ...).
762 */
763 String(): string
764 }
765 /**
766 * A Weekday specifies a day of the week (Sunday = 0, ...).
767 */
768 interface Weekday extends Number{}
769 interface Weekday {
770 /**
771 * String returns the English name of the day ("Sunday", "Monday", ...).
772 */
773 String(): string
774 }
775 /**
776 * A Duration represents the elapsed time between two instants
777 * as an int64 nanosecond count. The representation limits the
778 * largest representable duration to approximately 290 years.
779 */
780 interface Duration extends Number{}
781 interface Duration {
782 /**
783 * String returns a string representing the duration in the form "72h3m0.5s".
784 * Leading zero units are omitted. As a special case, durations less than one
785 * second format use a smaller unit (milli-, micro-, or nanoseconds) to ensure
786 * that the leading digit is non-zero. The zero duration formats as 0s.
787 */
788 String(): string
789 }
790 interface Duration {
791 /**
792 * Nanoseconds returns the duration as an integer nanosecond count.
793 */
794 Nanoseconds(): number
795 }
796 interface Duration {
797 /**
798 * Microseconds returns the duration as an integer microsecond count.
799 */
800 Microseconds(): number
801 }
802 interface Duration {
803 /**
804 * Milliseconds returns the duration as an integer millisecond count.
805 */
806 Milliseconds(): number
807 }
808 interface Duration {
809 /**
810 * Seconds returns the duration as a floating point number of seconds.
811 */
812 Seconds(): number
813 }
814 interface Duration {
815 /**
816 * Minutes returns the duration as a floating point number of minutes.
817 */
818 Minutes(): number
819 }
820 interface Duration {
821 /**
822 * Hours returns the duration as a floating point number of hours.
823 */
824 Hours(): number
825 }
826 interface Duration {
827 /**
828 * Truncate returns the result of rounding d toward zero to a multiple of m.
829 * If m <= 0, Truncate returns d unchanged.
830 */
831 Truncate(m: Duration): Duration
832 }
833 interface Duration {
834 /**
835 * Round returns the result of rounding d to the nearest multiple of m.
836 * The rounding behavior for halfway values is to round away from zero.
837 * If the result exceeds the maximum (or minimum)
838 * value that can be stored in a [Duration],
839 * Round returns the maximum (or minimum) duration.
840 * If m <= 0, Round returns d unchanged.
841 */
842 Round(m: Duration): Duration
843 }
844 interface Duration {
845 /**
846 * Abs returns the absolute value of d.
847 * As a special case, [math.MinInt64] is converted to [math.MaxInt64].
848 */
849 Abs(): Duration
850 }
851 /**
852 * A Location maps time instants to the zone in use at that time.
853 * Typically, the Location represents the collection of time offsets
854 * in use in a geographical area. For many Locations the time offset varies
855 * depending on whether daylight savings time is in use at the time instant.
856 *
857 * Location is used to provide a time zone in a printed Time value and for
858 * calculations involving intervals that may cross daylight savings time
859 * boundaries.
860 */
861 interface Location {
862 }
863 interface Location {
864 /**
865 * String returns a descriptive name for the time zone information,
866 * corresponding to the name argument to [LoadLocation] or [FixedZone].
867 */
868 String(): string
869 }
870 }