@invinite-org/chartlang-core 1.1.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +282 -0
- package/README.md +2 -1
- package/dist/draw/buckets.d.ts.map +1 -1
- package/dist/draw/buckets.js +1 -0
- package/dist/draw/buckets.js.map +1 -1
- package/dist/draw/draw.d.ts +8 -1
- package/dist/draw/draw.d.ts.map +1 -1
- package/dist/draw/draw.js.map +1 -1
- package/dist/draw/drawingKind.d.ts +8 -8
- package/dist/draw/drawingKind.d.ts.map +1 -1
- package/dist/draw/drawingKind.js +5 -3
- package/dist/draw/drawingKind.js.map +1 -1
- package/dist/draw/drawingState.d.ts +27 -3
- package/dist/draw/drawingState.d.ts.map +1 -1
- package/dist/draw/drawingState.js.map +1 -1
- package/dist/draw/drawingStyle.d.ts +52 -9
- package/dist/draw/drawingStyle.d.ts.map +1 -1
- package/dist/draw/drawingStyle.js.map +1 -1
- package/dist/draw/index.d.ts +2 -2
- package/dist/draw/index.d.ts.map +1 -1
- package/dist/draw/index.js.map +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.d.ts.map +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/input.d.ts +15 -1
- package/dist/input/input.d.ts.map +1 -1
- package/dist/input/input.js +14 -0
- package/dist/input/input.js.map +1 -1
- package/dist/input/inputDescriptor.d.ts +15 -2
- package/dist/input/inputDescriptor.d.ts.map +1 -1
- package/dist/input/inputDescriptor.js.map +1 -1
- package/dist/plot/plot.d.ts +75 -0
- package/dist/plot/plot.d.ts.map +1 -1
- package/dist/plot/plot.js +34 -0
- package/dist/plot/plot.js.map +1 -1
- package/dist/request/feedKey.d.ts +20 -0
- package/dist/request/feedKey.d.ts.map +1 -0
- package/dist/request/feedKey.js +29 -0
- package/dist/request/feedKey.js.map +1 -0
- package/dist/request/index.d.ts +3 -1
- package/dist/request/index.d.ts.map +1 -1
- package/dist/request/index.js +1 -0
- package/dist/request/index.js.map +1 -1
- package/dist/request/request.d.ts +107 -20
- package/dist/request/request.d.ts.map +1 -1
- package/dist/request/request.js +27 -26
- package/dist/request/request.js.map +1 -1
- package/dist/state/arraySlot.d.ts +38 -0
- package/dist/state/arraySlot.d.ts.map +1 -0
- package/dist/state/arraySlot.js +4 -0
- package/dist/state/arraySlot.js.map +1 -0
- package/dist/state/index.d.ts +1 -0
- package/dist/state/index.d.ts.map +1 -1
- package/dist/state/index.js.map +1 -1
- package/dist/state/state.d.ts +36 -0
- package/dist/state/state.d.ts.map +1 -1
- package/dist/state/state.js +38 -0
- package/dist/state/state.js.map +1 -1
- package/dist/statefulPrimitives.d.ts +9 -5
- package/dist/statefulPrimitives.d.ts.map +1 -1
- package/dist/statefulPrimitives.js +37 -5
- package/dist/statefulPrimitives.js.map +1 -1
- package/dist/ta/ta.d.ts +39 -8
- package/dist/ta/ta.d.ts.map +1 -1
- package/dist/ta/ta.js +6 -0
- package/dist/ta/ta.js.map +1 -1
- package/dist/time-accessors/index.d.ts +5 -0
- package/dist/time-accessors/index.d.ts.map +1 -0
- package/dist/time-accessors/index.js +5 -0
- package/dist/time-accessors/index.js.map +1 -0
- package/dist/time-accessors/sessionAccessors.d.ts +43 -0
- package/dist/time-accessors/sessionAccessors.d.ts.map +1 -0
- package/dist/time-accessors/sessionAccessors.js +38 -0
- package/dist/time-accessors/sessionAccessors.js.map +1 -0
- package/dist/time-accessors/timeAccessors.d.ts +132 -0
- package/dist/time-accessors/timeAccessors.d.ts.map +1 -0
- package/dist/time-accessors/timeAccessors.js +143 -0
- package/dist/time-accessors/timeAccessors.js.map +1 -0
- package/dist/types.d.ts +219 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionAccessors.js","sourceRoot":"","sources":["../../src/time-accessors/sessionAccessors.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+DAA+D;AAI/D,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAS,EAAE;IACrC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,uCAAuC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAQ,EAAE,KAAa,EAAE,GAAY;QACxC,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;CACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Invinite. Licensed under the MIT License.\n// See the LICENSE file in the repo root for full license text.\n\nimport type { Time } from \"../types.js\";\n\nconst sentinel = (name: string): never => {\n throw new Error(`${name} called outside an active script step`);\n};\n\n/**\n * Session-window membership helpers over a `Time` epoch.\n *\n * The runtime replaces this compile-time callable hole with a real namespace\n * through `ComputeContext.session`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: typeof session = session;\n * void ns;\n */\nexport const session = Object.freeze({\n /**\n * `true` when `t` falls inside the daily session window `spec`. `spec` is\n * an `\"HH:MM-HH:MM\"` (or `\"HHMM-HHMM\"`) intraday window, e.g.\n * `\"0930-1600\"`. The window is interpreted in `tz` (default\n * `syminfo.timezone`, fallback `\"UTC\"`).\n *\n * v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC\n * plus a one-time diagnostic (see the determinism note in the docs).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof session.isOpen = session.isOpen;\n * void fn;\n */\n isOpen(_t: Time, _spec: string, _tz?: string): boolean {\n return sentinel(\"session.isOpen\");\n },\n});\n\n/**\n * Static type of the `session` namespace. Runtime implementations satisfy this\n * shape structurally when installed on `ComputeContext.session`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: SessionNamespace = session;\n * void ns;\n */\nexport type SessionNamespace = typeof session;\n"]}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { Time } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Calendar accessors over a `Time` epoch (UTC ms since epoch). Each accessor
|
|
4
|
+
* is a pure function of an explicit `Time` plus an optional IANA timezone
|
|
5
|
+
* string; the default `tz` is the active mount's `syminfo.timezone`, falling
|
|
6
|
+
* back to `"UTC"` when that is empty. Authors never touch `Date`/`Intl` (both
|
|
7
|
+
* are banned on the script path) — the runtime owns the epoch math.
|
|
8
|
+
*
|
|
9
|
+
* v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC plus
|
|
10
|
+
* a one-time diagnostic (see the determinism note in the docs).
|
|
11
|
+
*
|
|
12
|
+
* The runtime replaces this compile-time callable hole with a real namespace
|
|
13
|
+
* through `ComputeContext.time`.
|
|
14
|
+
*
|
|
15
|
+
* @since 1.5
|
|
16
|
+
* @stable
|
|
17
|
+
* @example
|
|
18
|
+
* const ns: typeof time = time;
|
|
19
|
+
* void ns;
|
|
20
|
+
*/
|
|
21
|
+
export declare const time: Readonly<{
|
|
22
|
+
/**
|
|
23
|
+
* Calendar year of `t` (e.g. `2024`).
|
|
24
|
+
*
|
|
25
|
+
* @since 1.5
|
|
26
|
+
* @stable
|
|
27
|
+
* @example
|
|
28
|
+
* const fn: typeof time.year = time.year;
|
|
29
|
+
* void fn;
|
|
30
|
+
*/
|
|
31
|
+
year(_t: Time, _tz?: string): number;
|
|
32
|
+
/**
|
|
33
|
+
* Calendar month of `t`, `1..12`.
|
|
34
|
+
*
|
|
35
|
+
* @since 1.5
|
|
36
|
+
* @stable
|
|
37
|
+
* @example
|
|
38
|
+
* const fn: typeof time.month = time.month;
|
|
39
|
+
* void fn;
|
|
40
|
+
*/
|
|
41
|
+
month(_t: Time, _tz?: string): number;
|
|
42
|
+
/**
|
|
43
|
+
* Day of the month of `t`, `1..31`.
|
|
44
|
+
*
|
|
45
|
+
* @since 1.5
|
|
46
|
+
* @stable
|
|
47
|
+
* @example
|
|
48
|
+
* const fn: typeof time.dayofmonth = time.dayofmonth;
|
|
49
|
+
* void fn;
|
|
50
|
+
*/
|
|
51
|
+
dayofmonth(_t: Time, _tz?: string): number;
|
|
52
|
+
/**
|
|
53
|
+
* Day of the week of `t`, following Pine's convention `1=Sunday .. 7=Saturday`
|
|
54
|
+
* (note: NOT the ISO `1=Monday` convention).
|
|
55
|
+
*
|
|
56
|
+
* @since 1.5
|
|
57
|
+
* @stable
|
|
58
|
+
* @example
|
|
59
|
+
* const fn: typeof time.dayofweek = time.dayofweek;
|
|
60
|
+
* void fn;
|
|
61
|
+
*/
|
|
62
|
+
dayofweek(_t: Time, _tz?: string): number;
|
|
63
|
+
/**
|
|
64
|
+
* Hour-of-day of `t`, `0..23`.
|
|
65
|
+
*
|
|
66
|
+
* @since 1.5
|
|
67
|
+
* @stable
|
|
68
|
+
* @example
|
|
69
|
+
* const fn: typeof time.hour = time.hour;
|
|
70
|
+
* void fn;
|
|
71
|
+
*/
|
|
72
|
+
hour(_t: Time, _tz?: string): number;
|
|
73
|
+
/**
|
|
74
|
+
* Minute-of-hour of `t`, `0..59`.
|
|
75
|
+
*
|
|
76
|
+
* @since 1.5
|
|
77
|
+
* @stable
|
|
78
|
+
* @example
|
|
79
|
+
* const fn: typeof time.minute = time.minute;
|
|
80
|
+
* void fn;
|
|
81
|
+
*/
|
|
82
|
+
minute(_t: Time, _tz?: string): number;
|
|
83
|
+
/**
|
|
84
|
+
* Second-of-minute of `t`, `0..59`.
|
|
85
|
+
*
|
|
86
|
+
* @since 1.5
|
|
87
|
+
* @stable
|
|
88
|
+
* @example
|
|
89
|
+
* const fn: typeof time.second = time.second;
|
|
90
|
+
* void fn;
|
|
91
|
+
*/
|
|
92
|
+
second(_t: Time, _tz?: string): number;
|
|
93
|
+
/**
|
|
94
|
+
* Build a `Time` (UTC ms epoch) from calendar fields. `month` is `1..12`
|
|
95
|
+
* and `day` is `1..31`; `hour`/`minute`/`second` default to `0`. The
|
|
96
|
+
* fields are interpreted in `tz` (default `syminfo.timezone`, fallback
|
|
97
|
+
* `"UTC"`).
|
|
98
|
+
*
|
|
99
|
+
* @since 1.5
|
|
100
|
+
* @stable
|
|
101
|
+
* @example
|
|
102
|
+
* const fn: typeof time.timestamp = time.timestamp;
|
|
103
|
+
* void fn;
|
|
104
|
+
*/
|
|
105
|
+
timestamp(_year: number, _month: number, _day: number, _hour?: number, _minute?: number, _second?: number, _tz?: string): Time;
|
|
106
|
+
/**
|
|
107
|
+
* Close timestamp of the bar that starts at `t` — Pine's no-arg
|
|
108
|
+
* `time_close()`. Equals `t + interval`, where the interval is the active
|
|
109
|
+
* bar's `timeframe.inSeconds` the runtime reads internally (so this mirrors
|
|
110
|
+
* Pine's "current bar's interval" without an explicit interval argument).
|
|
111
|
+
* `tz` is accepted for surface symmetry with the other `time.*` accessors.
|
|
112
|
+
*
|
|
113
|
+
* @since 1.5
|
|
114
|
+
* @stable
|
|
115
|
+
* @example
|
|
116
|
+
* const fn: typeof time.timeClose = time.timeClose;
|
|
117
|
+
* void fn;
|
|
118
|
+
*/
|
|
119
|
+
timeClose(_t: Time, _tz?: string): Time;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Static type of the `time` namespace. Runtime implementations satisfy this
|
|
123
|
+
* shape structurally when installed on `ComputeContext.time`.
|
|
124
|
+
*
|
|
125
|
+
* @since 1.5
|
|
126
|
+
* @stable
|
|
127
|
+
* @example
|
|
128
|
+
* const ns: TimeNamespace = time;
|
|
129
|
+
* void ns;
|
|
130
|
+
*/
|
|
131
|
+
export type TimeNamespace = typeof time;
|
|
132
|
+
//# sourceMappingURL=timeAccessors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeAccessors.d.ts","sourceRoot":"","sources":["../../src/time-accessors/timeAccessors.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAMxC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,IAAI;IACb;;;;;;;;OAQG;aACM,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIpC;;;;;;;;OAQG;cACO,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIrC;;;;;;;;OAQG;mBACY,IAAI,QAAQ,MAAM,GAAG,MAAM;IAI1C;;;;;;;;;OASG;kBACW,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIzC;;;;;;;;OAQG;aACM,IAAI,QAAQ,MAAM,GAAG,MAAM;IAIpC;;;;;;;;OAQG;eACQ,IAAI,QAAQ,MAAM,GAAG,MAAM;IAItC;;;;;;;;OAQG;eACQ,IAAI,QAAQ,MAAM,GAAG,MAAM;IAItC;;;;;;;;;;;OAWG;qBAEQ,MAAM,UACL,MAAM,QACR,MAAM,UACJ,MAAM,YACJ,MAAM,YACN,MAAM,QACV,MAAM,GACb,IAAI;IAIP;;;;;;;;;;;;OAYG;kBACW,IAAI,QAAQ,MAAM,GAAG,IAAI;EAGzC,CAAC;AAEH;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Copyright (c) 2026 Invinite. Licensed under the MIT License.
|
|
2
|
+
// See the LICENSE file in the repo root for full license text.
|
|
3
|
+
const sentinel = (name) => {
|
|
4
|
+
throw new Error(`${name} called outside an active script step`);
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Calendar accessors over a `Time` epoch (UTC ms since epoch). Each accessor
|
|
8
|
+
* is a pure function of an explicit `Time` plus an optional IANA timezone
|
|
9
|
+
* string; the default `tz` is the active mount's `syminfo.timezone`, falling
|
|
10
|
+
* back to `"UTC"` when that is empty. Authors never touch `Date`/`Intl` (both
|
|
11
|
+
* are banned on the script path) — the runtime owns the epoch math.
|
|
12
|
+
*
|
|
13
|
+
* v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC plus
|
|
14
|
+
* a one-time diagnostic (see the determinism note in the docs).
|
|
15
|
+
*
|
|
16
|
+
* The runtime replaces this compile-time callable hole with a real namespace
|
|
17
|
+
* through `ComputeContext.time`.
|
|
18
|
+
*
|
|
19
|
+
* @since 1.5
|
|
20
|
+
* @stable
|
|
21
|
+
* @example
|
|
22
|
+
* const ns: typeof time = time;
|
|
23
|
+
* void ns;
|
|
24
|
+
*/
|
|
25
|
+
export const time = Object.freeze({
|
|
26
|
+
/**
|
|
27
|
+
* Calendar year of `t` (e.g. `2024`).
|
|
28
|
+
*
|
|
29
|
+
* @since 1.5
|
|
30
|
+
* @stable
|
|
31
|
+
* @example
|
|
32
|
+
* const fn: typeof time.year = time.year;
|
|
33
|
+
* void fn;
|
|
34
|
+
*/
|
|
35
|
+
year(_t, _tz) {
|
|
36
|
+
return sentinel("time.year");
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Calendar month of `t`, `1..12`.
|
|
40
|
+
*
|
|
41
|
+
* @since 1.5
|
|
42
|
+
* @stable
|
|
43
|
+
* @example
|
|
44
|
+
* const fn: typeof time.month = time.month;
|
|
45
|
+
* void fn;
|
|
46
|
+
*/
|
|
47
|
+
month(_t, _tz) {
|
|
48
|
+
return sentinel("time.month");
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Day of the month of `t`, `1..31`.
|
|
52
|
+
*
|
|
53
|
+
* @since 1.5
|
|
54
|
+
* @stable
|
|
55
|
+
* @example
|
|
56
|
+
* const fn: typeof time.dayofmonth = time.dayofmonth;
|
|
57
|
+
* void fn;
|
|
58
|
+
*/
|
|
59
|
+
dayofmonth(_t, _tz) {
|
|
60
|
+
return sentinel("time.dayofmonth");
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* Day of the week of `t`, following Pine's convention `1=Sunday .. 7=Saturday`
|
|
64
|
+
* (note: NOT the ISO `1=Monday` convention).
|
|
65
|
+
*
|
|
66
|
+
* @since 1.5
|
|
67
|
+
* @stable
|
|
68
|
+
* @example
|
|
69
|
+
* const fn: typeof time.dayofweek = time.dayofweek;
|
|
70
|
+
* void fn;
|
|
71
|
+
*/
|
|
72
|
+
dayofweek(_t, _tz) {
|
|
73
|
+
return sentinel("time.dayofweek");
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* Hour-of-day of `t`, `0..23`.
|
|
77
|
+
*
|
|
78
|
+
* @since 1.5
|
|
79
|
+
* @stable
|
|
80
|
+
* @example
|
|
81
|
+
* const fn: typeof time.hour = time.hour;
|
|
82
|
+
* void fn;
|
|
83
|
+
*/
|
|
84
|
+
hour(_t, _tz) {
|
|
85
|
+
return sentinel("time.hour");
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Minute-of-hour of `t`, `0..59`.
|
|
89
|
+
*
|
|
90
|
+
* @since 1.5
|
|
91
|
+
* @stable
|
|
92
|
+
* @example
|
|
93
|
+
* const fn: typeof time.minute = time.minute;
|
|
94
|
+
* void fn;
|
|
95
|
+
*/
|
|
96
|
+
minute(_t, _tz) {
|
|
97
|
+
return sentinel("time.minute");
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* Second-of-minute of `t`, `0..59`.
|
|
101
|
+
*
|
|
102
|
+
* @since 1.5
|
|
103
|
+
* @stable
|
|
104
|
+
* @example
|
|
105
|
+
* const fn: typeof time.second = time.second;
|
|
106
|
+
* void fn;
|
|
107
|
+
*/
|
|
108
|
+
second(_t, _tz) {
|
|
109
|
+
return sentinel("time.second");
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Build a `Time` (UTC ms epoch) from calendar fields. `month` is `1..12`
|
|
113
|
+
* and `day` is `1..31`; `hour`/`minute`/`second` default to `0`. The
|
|
114
|
+
* fields are interpreted in `tz` (default `syminfo.timezone`, fallback
|
|
115
|
+
* `"UTC"`).
|
|
116
|
+
*
|
|
117
|
+
* @since 1.5
|
|
118
|
+
* @stable
|
|
119
|
+
* @example
|
|
120
|
+
* const fn: typeof time.timestamp = time.timestamp;
|
|
121
|
+
* void fn;
|
|
122
|
+
*/
|
|
123
|
+
timestamp(_year, _month, _day, _hour, _minute, _second, _tz) {
|
|
124
|
+
return sentinel("time.timestamp");
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Close timestamp of the bar that starts at `t` — Pine's no-arg
|
|
128
|
+
* `time_close()`. Equals `t + interval`, where the interval is the active
|
|
129
|
+
* bar's `timeframe.inSeconds` the runtime reads internally (so this mirrors
|
|
130
|
+
* Pine's "current bar's interval" without an explicit interval argument).
|
|
131
|
+
* `tz` is accepted for surface symmetry with the other `time.*` accessors.
|
|
132
|
+
*
|
|
133
|
+
* @since 1.5
|
|
134
|
+
* @stable
|
|
135
|
+
* @example
|
|
136
|
+
* const fn: typeof time.timeClose = time.timeClose;
|
|
137
|
+
* void fn;
|
|
138
|
+
*/
|
|
139
|
+
timeClose(_t, _tz) {
|
|
140
|
+
return sentinel("time.timeClose");
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=timeAccessors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeAccessors.js","sourceRoot":"","sources":["../../src/time-accessors/timeAccessors.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,+DAA+D;AAI/D,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAS,EAAE;IACrC,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,uCAAuC,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAQ,EAAE,GAAY;QACvB,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAQ,EAAE,GAAY;QACxB,OAAO,QAAQ,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAQ,EAAE,GAAY;QAC7B,OAAO,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAQ,EAAE,GAAY;QAC5B,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAQ,EAAE,GAAY;QACvB,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAQ,EAAE,GAAY;QACzB,OAAO,QAAQ,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAQ,EAAE,GAAY;QACzB,OAAO,QAAQ,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CACL,KAAa,EACb,MAAc,EACd,IAAY,EACZ,KAAc,EACd,OAAgB,EAChB,OAAgB,EAChB,GAAY;QAEZ,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAQ,EAAE,GAAY;QAC5B,OAAO,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACtC,CAAC;CACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Invinite. Licensed under the MIT License.\n// See the LICENSE file in the repo root for full license text.\n\nimport type { Time } from \"../types.js\";\n\nconst sentinel = (name: string): never => {\n throw new Error(`${name} called outside an active script step`);\n};\n\n/**\n * Calendar accessors over a `Time` epoch (UTC ms since epoch). Each accessor\n * is a pure function of an explicit `Time` plus an optional IANA timezone\n * string; the default `tz` is the active mount's `syminfo.timezone`, falling\n * back to `\"UTC\"` when that is empty. Authors never touch `Date`/`Intl` (both\n * are banned on the script path) — the runtime owns the epoch math.\n *\n * v1 resolves UTC and fixed-offset zones only; a DST zone resolves to UTC plus\n * a one-time diagnostic (see the determinism note in the docs).\n *\n * The runtime replaces this compile-time callable hole with a real namespace\n * through `ComputeContext.time`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: typeof time = time;\n * void ns;\n */\nexport const time = Object.freeze({\n /**\n * Calendar year of `t` (e.g. `2024`).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.year = time.year;\n * void fn;\n */\n year(_t: Time, _tz?: string): number {\n return sentinel(\"time.year\");\n },\n\n /**\n * Calendar month of `t`, `1..12`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.month = time.month;\n * void fn;\n */\n month(_t: Time, _tz?: string): number {\n return sentinel(\"time.month\");\n },\n\n /**\n * Day of the month of `t`, `1..31`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.dayofmonth = time.dayofmonth;\n * void fn;\n */\n dayofmonth(_t: Time, _tz?: string): number {\n return sentinel(\"time.dayofmonth\");\n },\n\n /**\n * Day of the week of `t`, following Pine's convention `1=Sunday .. 7=Saturday`\n * (note: NOT the ISO `1=Monday` convention).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.dayofweek = time.dayofweek;\n * void fn;\n */\n dayofweek(_t: Time, _tz?: string): number {\n return sentinel(\"time.dayofweek\");\n },\n\n /**\n * Hour-of-day of `t`, `0..23`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.hour = time.hour;\n * void fn;\n */\n hour(_t: Time, _tz?: string): number {\n return sentinel(\"time.hour\");\n },\n\n /**\n * Minute-of-hour of `t`, `0..59`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.minute = time.minute;\n * void fn;\n */\n minute(_t: Time, _tz?: string): number {\n return sentinel(\"time.minute\");\n },\n\n /**\n * Second-of-minute of `t`, `0..59`.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.second = time.second;\n * void fn;\n */\n second(_t: Time, _tz?: string): number {\n return sentinel(\"time.second\");\n },\n\n /**\n * Build a `Time` (UTC ms epoch) from calendar fields. `month` is `1..12`\n * and `day` is `1..31`; `hour`/`minute`/`second` default to `0`. The\n * fields are interpreted in `tz` (default `syminfo.timezone`, fallback\n * `\"UTC\"`).\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.timestamp = time.timestamp;\n * void fn;\n */\n timestamp(\n _year: number,\n _month: number,\n _day: number,\n _hour?: number,\n _minute?: number,\n _second?: number,\n _tz?: string,\n ): Time {\n return sentinel(\"time.timestamp\");\n },\n\n /**\n * Close timestamp of the bar that starts at `t` — Pine's no-arg\n * `time_close()`. Equals `t + interval`, where the interval is the active\n * bar's `timeframe.inSeconds` the runtime reads internally (so this mirrors\n * Pine's \"current bar's interval\" without an explicit interval argument).\n * `tz` is accepted for surface symmetry with the other `time.*` accessors.\n *\n * @since 1.5\n * @stable\n * @example\n * const fn: typeof time.timeClose = time.timeClose;\n * void fn;\n */\n timeClose(_t: Time, _tz?: string): Time {\n return sentinel(\"time.timeClose\");\n },\n});\n\n/**\n * Static type of the `time` namespace. Runtime implementations satisfy this\n * shape structurally when installed on `ComputeContext.time`.\n *\n * @since 1.5\n * @stable\n * @example\n * const ns: TimeNamespace = time;\n * void ns;\n */\nexport type TimeNamespace = typeof time;\n"]}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { DependencyDeclaration, OutputDeclaration } from "./define/dependency.js";
|
|
2
2
|
import type { ScaleAxis, ValueFormat } from "./define/overrides.js";
|
|
3
3
|
import type { DrawNamespace } from "./draw/draw.js";
|
|
4
|
+
import type { WorldPoint } from "./draw/worldPoint.js";
|
|
4
5
|
import type { InputDescriptor } from "./input/inputDescriptor.js";
|
|
5
6
|
import type { PlotKind } from "./plot/plot.js";
|
|
6
7
|
import type { RequestNamespace } from "./request/index.js";
|
|
7
8
|
import type { RuntimeNamespace } from "./runtime/index.js";
|
|
9
|
+
import type { MutableSlot } from "./state/mutableSlot.js";
|
|
8
10
|
import type { StateNamespace } from "./state/state.js";
|
|
9
11
|
import type { TaNamespace } from "./ta/ta.js";
|
|
12
|
+
import type { SessionNamespace, TimeNamespace } from "./time-accessors/index.js";
|
|
10
13
|
import type { BarStateView, SymInfoView, TimeframeView } from "./views/index.js";
|
|
11
14
|
/**
|
|
12
15
|
* UTC milliseconds since epoch — the only time representation the runtime
|
|
@@ -93,6 +96,45 @@ export type Bar = {
|
|
|
93
96
|
readonly hlcc4: Price;
|
|
94
97
|
/** Visible-range fallback used by viewport-aware primitives. @since 0.5 */
|
|
95
98
|
readonly viewport?: BarViewport;
|
|
99
|
+
/**
|
|
100
|
+
* Anchor a {@link WorldPoint} by integer bar `offset` instead of an
|
|
101
|
+
* absolute timestamp. The returned `{ time, price }` is the only frame
|
|
102
|
+
* drawings persist (see {@link WorldPoint}), so it composes directly
|
|
103
|
+
* with every `draw.*` anchor argument — `bar.point` is authoring sugar
|
|
104
|
+
* that resolves the offset to a real / extrapolated time at compute
|
|
105
|
+
* time; it introduces no new anchor shape.
|
|
106
|
+
*
|
|
107
|
+
* Offset semantics (relative to the current bar):
|
|
108
|
+
* - `offset === 0` → the current bar: `{ time: bar.time, price }`.
|
|
109
|
+
* - `offset < 0` → `|offset|` bars back; the time is the real
|
|
110
|
+
* historical timestamp from the runtime's time ring buffer. When the
|
|
111
|
+
* offset reaches past retained history the time is `NaN` (graceful
|
|
112
|
+
* degradation, matching how a `Series` lookback past history reads
|
|
113
|
+
* `NaN`) — it never throws.
|
|
114
|
+
* - `offset > 0` → a future bar that does not exist yet; the time is
|
|
115
|
+
* extrapolated as `lastTime + offset * spacing`, where `spacing` is
|
|
116
|
+
* the median delta of the most recent retained bar times, falling
|
|
117
|
+
* back to the parsed bar interval when fewer than two bars are
|
|
118
|
+
* retained.
|
|
119
|
+
*
|
|
120
|
+
* `price` passes through unchanged (it may be `NaN`).
|
|
121
|
+
*
|
|
122
|
+
* @since 0.9
|
|
123
|
+
* @stable
|
|
124
|
+
* @formula time = offset === 0 ? bar.time
|
|
125
|
+
* : offset < 0 ? history.time.at(-offset)
|
|
126
|
+
* : lastTime + offset * spacing
|
|
127
|
+
* @anchors offset (bar index), price, and the runtime time history
|
|
128
|
+
* @example
|
|
129
|
+
* function tick(bar: Bar): WorldPoint {
|
|
130
|
+
* // Tracking line from 10 bars ago to the current close.
|
|
131
|
+
* const from = bar.point(-10, bar.close);
|
|
132
|
+
* const to = bar.point(0, bar.close);
|
|
133
|
+
* void from;
|
|
134
|
+
* return to;
|
|
135
|
+
* }
|
|
136
|
+
*/
|
|
137
|
+
point(offset: number, price: Price): WorldPoint;
|
|
96
138
|
};
|
|
97
139
|
/**
|
|
98
140
|
* Read-only view over a ring-buffered history of values. `current` is bar 0,
|
|
@@ -110,6 +152,90 @@ export type Series<T> = {
|
|
|
110
152
|
readonly [n: number]: T;
|
|
111
153
|
readonly length: number;
|
|
112
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* A bar price field that is **both** a scalar `Price` (so `bar.close * 2`,
|
|
157
|
+
* comparisons, `Math.*`, `plot(bar.close)`, and `ta.*` source arguments all
|
|
158
|
+
* work) **and** an indexable `Series<Price>` (so `bar.close[1]` reads the
|
|
159
|
+
* close one bar ago, `bar.close.current` reads the current close, and
|
|
160
|
+
* `bar.close.length` reads the filled depth). The runtime backs it with a
|
|
161
|
+
* number-coercible ring-buffer view: arithmetic reads `bar.close[0]` (the
|
|
162
|
+
* current value) while a literal index reads that many bars back.
|
|
163
|
+
*
|
|
164
|
+
* Because the value is an object, raw-number reflection differs from a plain
|
|
165
|
+
* `number`: `Number.isFinite(bar.close)` is always `false` (it does not
|
|
166
|
+
* coerce) and `bar.close === 42` is `false` (object vs number). Use
|
|
167
|
+
* `bar.close.current` or `+bar.close` for those contexts.
|
|
168
|
+
*
|
|
169
|
+
* @since 1.3
|
|
170
|
+
* @example
|
|
171
|
+
* function delta(close: PriceSeries): number {
|
|
172
|
+
* // current close minus the close one bar ago
|
|
173
|
+
* return close - close[1];
|
|
174
|
+
* }
|
|
175
|
+
*/
|
|
176
|
+
export type PriceSeries = Price & Series<Price>;
|
|
177
|
+
/**
|
|
178
|
+
* Volume counterpart of {@link PriceSeries}: a bar `volume` field usable both
|
|
179
|
+
* as a scalar `Volume` and as an indexable `Series<Volume>` (`bar.volume[1]`).
|
|
180
|
+
*
|
|
181
|
+
* @since 1.3
|
|
182
|
+
* @example
|
|
183
|
+
* function avgVol(v: VolumeSeries): number {
|
|
184
|
+
* return (v[0] + v[1] + v[2]) / 3;
|
|
185
|
+
* }
|
|
186
|
+
*/
|
|
187
|
+
export type VolumeSeries = Volume & Series<Volume>;
|
|
188
|
+
/**
|
|
189
|
+
* A user-allocated, writable, indexable number series — the value half of
|
|
190
|
+
* {@link state}'s `series` slot. It is **both** a writable scalar slot
|
|
191
|
+
* (`s.value = x`, like `state.float`) **and** an indexable
|
|
192
|
+
* `Series<number>` (`s[1]`, `s.current`, `+s`, like `bar.close`). Assign
|
|
193
|
+
* the current bar's value with `s.value = …` each step; read history with
|
|
194
|
+
* `s[n]` (n bars ago, `NaN` until filled). The runtime backs it with a
|
|
195
|
+
* number-coercible ring-buffer view sized to the script's max lookback.
|
|
196
|
+
*
|
|
197
|
+
* `Number.isFinite(s)` / `s === x` see the **object**, not the number —
|
|
198
|
+
* use `s.current` / `+s` / `s.value` for raw-number contexts.
|
|
199
|
+
*
|
|
200
|
+
* @since 1.3
|
|
201
|
+
* @stable
|
|
202
|
+
* @example
|
|
203
|
+
* function lag(s: NumberSeriesSlot): number {
|
|
204
|
+
* s.value = 42;
|
|
205
|
+
* return s.current - s[1]; // current minus one bar ago
|
|
206
|
+
* }
|
|
207
|
+
*/
|
|
208
|
+
export type NumberSeriesSlot = MutableSlot<number> & Series<number>;
|
|
209
|
+
/**
|
|
210
|
+
* The current bar as `compute` sees it. Identical to {@link Bar} except the
|
|
211
|
+
* OHLCV + derived price/volume fields are {@link PriceSeries} /
|
|
212
|
+
* {@link VolumeSeries} — both a scalar (`bar.close * 2`, `plot(bar.close)`,
|
|
213
|
+
* `ta.ema(bar.close, 20)`) and an indexable series (`bar.close[1]` reads the
|
|
214
|
+
* close one bar ago). `time` stays a scalar `Time`.
|
|
215
|
+
*
|
|
216
|
+
* This is distinct from {@link Bar} on purpose: {@link Bar} is the
|
|
217
|
+
* adapter-supplied / `request.lowerTf` candle (scalar OHLCV, no per-field
|
|
218
|
+
* history), while `BarSeries` is the streaming bar inside `compute` where the
|
|
219
|
+
* runtime retains a ring buffer per field. `request.security`'s higher-
|
|
220
|
+
* timeframe bar is the separate {@link SecurityBar}.
|
|
221
|
+
*
|
|
222
|
+
* @since 1.3
|
|
223
|
+
* @example
|
|
224
|
+
* function delta(bar: BarSeries): number {
|
|
225
|
+
* return bar.close - bar.close[1];
|
|
226
|
+
* }
|
|
227
|
+
*/
|
|
228
|
+
export type BarSeries = Omit<Bar, "open" | "high" | "low" | "close" | "volume" | "hl2" | "hlc3" | "ohlc4" | "hlcc4"> & {
|
|
229
|
+
readonly open: PriceSeries;
|
|
230
|
+
readonly high: PriceSeries;
|
|
231
|
+
readonly low: PriceSeries;
|
|
232
|
+
readonly close: PriceSeries;
|
|
233
|
+
readonly volume: VolumeSeries;
|
|
234
|
+
readonly hl2: PriceSeries;
|
|
235
|
+
readonly hlc3: PriceSeries;
|
|
236
|
+
readonly ohlc4: PriceSeries;
|
|
237
|
+
readonly hlcc4: PriceSeries;
|
|
238
|
+
};
|
|
113
239
|
/**
|
|
114
240
|
* CSS color string — `"#rrggbb"`, `"rgb(...)"`, `"hsl(...)"`, etc. Adapters
|
|
115
241
|
* round-trip the string verbatim.
|
|
@@ -247,6 +373,53 @@ export type PlotSlotDescriptor = {
|
|
|
247
373
|
readonly kind: PlotKind;
|
|
248
374
|
readonly title?: string;
|
|
249
375
|
};
|
|
376
|
+
/**
|
|
377
|
+
* One higher-timeframe expression unit in `ScriptManifest.securityExpressions`.
|
|
378
|
+
* The compiler emits one entry per `request.security({ interval }, (bar) => …)`
|
|
379
|
+
* callsite so the runtime knows which `slotId` is an HTF expression, on which
|
|
380
|
+
* `interval` to clock it, and the callback's single parameter name. The
|
|
381
|
+
* callback body stays inline in the compiled module — this descriptor is only
|
|
382
|
+
* the registry pointing at it.
|
|
383
|
+
*
|
|
384
|
+
* @since 0.7
|
|
385
|
+
* @stable
|
|
386
|
+
* @example
|
|
387
|
+
* // symbol omitted ⇒ the chart's own symbol (the HTF-only back-compat case)
|
|
388
|
+
* const unit: SecurityExpressionDescriptor = {
|
|
389
|
+
* slotId: "trend.ts:8:21#0",
|
|
390
|
+
* interval: "1W",
|
|
391
|
+
* paramName: "bar",
|
|
392
|
+
* };
|
|
393
|
+
* void unit;
|
|
394
|
+
*/
|
|
395
|
+
export type SecurityExpressionDescriptor = {
|
|
396
|
+
readonly slotId: string;
|
|
397
|
+
/**
|
|
398
|
+
* Requested symbol; omitted ⇒ the chart's own symbol.
|
|
399
|
+
*
|
|
400
|
+
* @since 1.3
|
|
401
|
+
*/
|
|
402
|
+
readonly symbol?: string;
|
|
403
|
+
readonly interval: string;
|
|
404
|
+
readonly paramName: string;
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* One requested secondary feed — a `(symbol, interval)` pair the script's
|
|
408
|
+
* `request.security` calls ask for. `symbol` omitted ⇒ the chart's own
|
|
409
|
+
* symbol (the higher-timeframe-only case). The compiler emits one entry per
|
|
410
|
+
* **distinct** feed; the runtime creates one secondary `StreamState` per
|
|
411
|
+
* entry, keyed by the shared `feedKey(symbol, interval)` composite.
|
|
412
|
+
*
|
|
413
|
+
* @since 1.3
|
|
414
|
+
* @stable
|
|
415
|
+
* @example
|
|
416
|
+
* const f: RequestedFeed = { symbol: "AMEX:SPY", interval: "1D" };
|
|
417
|
+
* void f;
|
|
418
|
+
*/
|
|
419
|
+
export type RequestedFeed = {
|
|
420
|
+
readonly symbol?: string;
|
|
421
|
+
readonly interval: string;
|
|
422
|
+
};
|
|
250
423
|
/**
|
|
251
424
|
* Host-supplied presentation override for a single plot slot, keyed by
|
|
252
425
|
* `PlotEmission.slotId`. Applied by the runtime at emit time; never
|
|
@@ -440,6 +613,43 @@ export type ScriptManifest = {
|
|
|
440
613
|
* void v;
|
|
441
614
|
*/
|
|
442
615
|
readonly plots?: ReadonlyArray<PlotSlotDescriptor>;
|
|
616
|
+
/**
|
|
617
|
+
* Higher-timeframe expression units — one per
|
|
618
|
+
* `request.security({ interval }, (bar) => …)` callsite, sorted by
|
|
619
|
+
* `slotId`. Tells the runtime which slot ids run on an HTF clock and on
|
|
620
|
+
* which interval. Absent on scripts that use only the data form (or no
|
|
621
|
+
* `request.security` at all) so existing manifest snapshots stay
|
|
622
|
+
* byte-identical.
|
|
623
|
+
*
|
|
624
|
+
* @since 0.7
|
|
625
|
+
* @stable
|
|
626
|
+
* @example
|
|
627
|
+
* const v: ScriptManifest["securityExpressions"] = [
|
|
628
|
+
* { slotId: "trend.ts:8:21#0", interval: "1W", paramName: "bar" },
|
|
629
|
+
* { slotId: "aapl.ts:9:21#0", symbol: "NASDAQ:AAPL", interval: "1W", paramName: "bar" },
|
|
630
|
+
* ];
|
|
631
|
+
* void v;
|
|
632
|
+
*/
|
|
633
|
+
readonly securityExpressions?: ReadonlyArray<SecurityExpressionDescriptor>;
|
|
634
|
+
/**
|
|
635
|
+
* Every distinct secondary feed the script's `request.security` calls
|
|
636
|
+
* request, as `(symbol?, interval)` pairs. Superset of
|
|
637
|
+
* {@link ScriptManifest.requestedIntervals}, which stays the
|
|
638
|
+
* **main-symbol** HTF projection (symbol-omitted feeds) for back-compat —
|
|
639
|
+
* adding this field is additive within `apiVersion: 1`, whereas reshaping
|
|
640
|
+
* `requestedIntervals` would not be. Absent on scripts with no
|
|
641
|
+
* `request.security` so existing manifest snapshots stay byte-identical.
|
|
642
|
+
*
|
|
643
|
+
* @since 1.3
|
|
644
|
+
* @stable
|
|
645
|
+
* @example
|
|
646
|
+
* const v: ScriptManifest["requestedFeeds"] = [
|
|
647
|
+
* { interval: "1W" },
|
|
648
|
+
* { symbol: "AMEX:SPY", interval: "1D" },
|
|
649
|
+
* ];
|
|
650
|
+
* void v;
|
|
651
|
+
*/
|
|
652
|
+
readonly requestedFeeds?: ReadonlyArray<RequestedFeed>;
|
|
443
653
|
/**
|
|
444
654
|
* The ES-module binding name this manifest was reached through.
|
|
445
655
|
* `"default"` for `export default defineIndicator(...)`; the
|
|
@@ -529,11 +739,15 @@ export type AlertConditionDefinition = AlertConditionDescriptor & Readonly<{
|
|
|
529
739
|
* const fn: ComputeFn = ({ bar, plot }) => { plot(bar.close); };
|
|
530
740
|
*/
|
|
531
741
|
export type ComputeContext = {
|
|
532
|
-
readonly bar:
|
|
742
|
+
readonly bar: BarSeries;
|
|
533
743
|
readonly inputs: Readonly<Record<string, unknown>>;
|
|
534
744
|
readonly ta: TaNamespace;
|
|
535
745
|
readonly plot: typeof import("./plot/plot.js").plot;
|
|
536
746
|
readonly hline: typeof import("./plot/plot.js").hline;
|
|
747
|
+
/** Pane-background band alias (`bg-color` plot style). @since 1.4 */
|
|
748
|
+
readonly bgcolor: typeof import("./plot/plot.js").bgcolor;
|
|
749
|
+
/** Candle/bar tint alias (`bar-color` plot style). @since 1.4 */
|
|
750
|
+
readonly barcolor: typeof import("./plot/plot.js").barcolor;
|
|
537
751
|
readonly alert: typeof import("./alert/alert.js").alert;
|
|
538
752
|
/** Pine `var` / `varip` state slots. @since 0.4 */
|
|
539
753
|
readonly state: StateNamespace;
|
|
@@ -543,6 +757,10 @@ export type ComputeContext = {
|
|
|
543
757
|
readonly syminfo: SymInfoView;
|
|
544
758
|
/** Timeframe helper view derived for the active step. @since 0.4 */
|
|
545
759
|
readonly timeframe: TimeframeView;
|
|
760
|
+
/** Calendar accessors over a `Time` epoch (UTC-first). @since 1.5 */
|
|
761
|
+
readonly time: TimeNamespace;
|
|
762
|
+
/** Session-window membership helpers. @since 1.5 */
|
|
763
|
+
readonly session: SessionNamespace;
|
|
546
764
|
/** Secondary timeframe request namespace. @since 0.4 */
|
|
547
765
|
readonly request: RequestNamespace;
|
|
548
766
|
/** Runtime logging and fatal halt namespace. @since 0.5 */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjF;;;;;;;GAOG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAE1B;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH;;;;;;;;;;;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