@synnaxlabs/x 0.48.0 → 0.49.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.
Files changed (243) hide show
  1. package/.turbo/turbo-build.log +6 -104
  2. package/dist/src/deep/join.d.ts.map +1 -0
  3. package/dist/src/deep/path.d.ts +1 -1
  4. package/dist/src/deep/path.d.ts.map +1 -1
  5. package/dist/src/destructor/destructor.d.ts +7 -0
  6. package/dist/src/destructor/destructor.d.ts.map +1 -0
  7. package/dist/src/destructor/index.d.ts +2 -0
  8. package/dist/src/destructor/index.d.ts.map +1 -0
  9. package/dist/src/index.d.ts +5 -10
  10. package/dist/src/index.d.ts.map +1 -1
  11. package/dist/src/math/constants.d.ts +1 -0
  12. package/dist/src/math/constants.d.ts.map +1 -1
  13. package/dist/src/migrate/migrate.d.ts +3 -3
  14. package/dist/src/migrate/migrate.d.ts.map +1 -1
  15. package/dist/src/narrow/index.d.ts +2 -0
  16. package/dist/src/narrow/index.d.ts.map +1 -0
  17. package/dist/src/narrow/narrow.d.ts +4 -0
  18. package/dist/src/narrow/narrow.d.ts.map +1 -0
  19. package/dist/src/narrow/narrow.spec.d.ts +2 -0
  20. package/dist/src/narrow/narrow.spec.d.ts.map +1 -0
  21. package/dist/src/numeric/numeric.d.ts +0 -1
  22. package/dist/src/numeric/numeric.d.ts.map +1 -1
  23. package/dist/src/observe/observe.d.ts +4 -4
  24. package/dist/src/observe/observe.d.ts.map +1 -1
  25. package/dist/src/optional/index.d.ts +2 -0
  26. package/dist/src/optional/index.d.ts.map +1 -0
  27. package/dist/src/optional/optional.d.ts.map +1 -0
  28. package/dist/src/scheduler/index.d.ts +2 -0
  29. package/dist/src/scheduler/index.d.ts.map +1 -0
  30. package/dist/src/{flush.d.ts → scheduler/scheduler.d.ts} +1 -1
  31. package/dist/src/scheduler/scheduler.d.ts.map +1 -0
  32. package/dist/src/scheduler/scheduler.spec.d.ts +2 -0
  33. package/dist/src/scheduler/scheduler.spec.d.ts.map +1 -0
  34. package/dist/src/shallow/copy.d.ts +2 -0
  35. package/dist/src/shallow/copy.d.ts.map +1 -0
  36. package/dist/src/shallow/copy.spec.d.ts +2 -0
  37. package/dist/src/shallow/copy.spec.d.ts.map +1 -0
  38. package/dist/src/shallow/index.d.ts +2 -0
  39. package/dist/src/shallow/index.d.ts.map +1 -0
  40. package/dist/src/spatial/base.d.ts +5 -38
  41. package/dist/src/spatial/base.d.ts.map +1 -1
  42. package/dist/src/spatial/direction/direction.d.ts +2 -1
  43. package/dist/src/spatial/direction/direction.d.ts.map +1 -1
  44. package/dist/src/spatial/external.d.ts +2 -1
  45. package/dist/src/spatial/external.d.ts.map +1 -1
  46. package/dist/src/spatial/location/location.d.ts +2 -2
  47. package/dist/src/spatial/location/location.d.ts.map +1 -1
  48. package/dist/src/spatial/sticky/index.d.ts +2 -0
  49. package/dist/src/spatial/sticky/index.d.ts.map +1 -0
  50. package/dist/src/spatial/sticky/sticky.d.ts +74 -0
  51. package/dist/src/spatial/sticky/sticky.d.ts.map +1 -0
  52. package/dist/src/spatial/sticky/sticky.spec.d.ts +2 -0
  53. package/dist/src/spatial/sticky/sticky.spec.d.ts.map +1 -0
  54. package/dist/src/spatial/xy/xy.d.ts +10 -2
  55. package/dist/src/spatial/xy/xy.d.ts.map +1 -1
  56. package/dist/src/status/status.d.ts +2 -2
  57. package/dist/src/status/status.d.ts.map +1 -1
  58. package/dist/src/telem/series.d.ts +4 -4
  59. package/dist/src/telem/series.d.ts.map +1 -1
  60. package/dist/src/telem/telem.d.ts +0 -1
  61. package/dist/src/telem/telem.d.ts.map +1 -1
  62. package/dist/src/types/index.d.ts +2 -0
  63. package/dist/src/types/index.d.ts.map +1 -0
  64. package/dist/src/zod/external.d.ts +1 -0
  65. package/dist/src/zod/external.d.ts.map +1 -1
  66. package/dist/src/zod/schemas.d.ts +3 -0
  67. package/dist/src/zod/schemas.d.ts.map +1 -0
  68. package/dist/src/zod/schemas.spec.d.ts +2 -0
  69. package/dist/src/zod/schemas.spec.d.ts.map +1 -0
  70. package/dist/x.cjs +12 -0
  71. package/dist/x.js +5521 -0
  72. package/package.json +6 -144
  73. package/src/binary/codec.ts +2 -2
  74. package/src/deep/merge.ts +3 -3
  75. package/src/deep/path.ts +1 -1
  76. package/src/{destructor.ts → destructor/destructor.ts} +1 -1
  77. package/src/{invert.ts → destructor/index.ts} +1 -1
  78. package/src/index.ts +5 -10
  79. package/src/math/constants.ts +1 -0
  80. package/src/migrate/migrate.ts +5 -3
  81. package/src/{mock → narrow}/index.ts +1 -1
  82. package/src/narrow/narrow.spec.ts +70 -0
  83. package/src/{identity.ts → narrow/narrow.ts} +6 -0
  84. package/src/numeric/numeric.ts +0 -5
  85. package/src/observe/observe.ts +4 -4
  86. package/src/{replace.ts → optional/index.ts} +1 -1
  87. package/src/scheduler/index.ts +10 -0
  88. package/src/scheduler/scheduler.spec.ts +82 -0
  89. package/src/shallow/copy.spec.ts +141 -0
  90. package/src/{shallowCopy.ts → shallow/copy.ts} +1 -1
  91. package/src/shallow/index.ts +10 -0
  92. package/src/spatial/base.ts +6 -15
  93. package/src/spatial/direction/direction.ts +2 -0
  94. package/src/spatial/external.ts +2 -1
  95. package/src/spatial/location/location.spec.ts +16 -0
  96. package/src/spatial/location/location.ts +7 -7
  97. package/src/spatial/sticky/index.ts +10 -0
  98. package/src/spatial/sticky/sticky.spec.ts +584 -0
  99. package/src/spatial/sticky/sticky.ts +98 -0
  100. package/src/spatial/xy/xy.spec.ts +55 -0
  101. package/src/spatial/xy/xy.ts +27 -2
  102. package/src/status/status.ts +5 -5
  103. package/src/telem/series.ts +5 -6
  104. package/src/telem/telem.spec.ts +0 -28
  105. package/src/telem/telem.ts +1 -9
  106. package/src/{clamp → types}/index.ts +1 -1
  107. package/src/zod/external.ts +1 -0
  108. package/src/zod/schemas.spec.ts +51 -0
  109. package/src/zod/schemas.ts +14 -0
  110. package/tsconfig.tsbuildinfo +1 -1
  111. package/vite.config.ts +1 -36
  112. package/dist/array.cjs +0 -1
  113. package/dist/array.js +0 -4
  114. package/dist/base-DRybODwJ.js +0 -42
  115. package/dist/base-KIBsp6TI.cjs +0 -1
  116. package/dist/binary.cjs +0 -1
  117. package/dist/binary.js +0 -4
  118. package/dist/bounds-4BWKPqaP.js +0 -183
  119. package/dist/bounds-C2TKFgVk.cjs +0 -1
  120. package/dist/bounds.cjs +0 -1
  121. package/dist/bounds.js +0 -4
  122. package/dist/box-BXWXSkKu.js +0 -203
  123. package/dist/box-rH3ggwXk.cjs +0 -1
  124. package/dist/box.cjs +0 -1
  125. package/dist/box.js +0 -4
  126. package/dist/caseconv.cjs +0 -1
  127. package/dist/caseconv.js +0 -4
  128. package/dist/change-C-YELKx6.cjs +0 -1
  129. package/dist/change-DLl6DccR.js +0 -12
  130. package/dist/change.cjs +0 -1
  131. package/dist/change.js +0 -4
  132. package/dist/compare-Bnx9CdjS.js +0 -119
  133. package/dist/compare-GPoFaKRW.cjs +0 -1
  134. package/dist/compare.cjs +0 -1
  135. package/dist/compare.js +0 -36
  136. package/dist/debounce.cjs +0 -1
  137. package/dist/debounce.js +0 -17
  138. package/dist/deep.cjs +0 -1
  139. package/dist/deep.js +0 -247
  140. package/dist/destructor.cjs +0 -1
  141. package/dist/destructor.js +0 -1
  142. package/dist/dimensions-Cg5Owbwn.cjs +0 -1
  143. package/dist/dimensions-DC0uLPwn.js +0 -43
  144. package/dist/dimensions.cjs +0 -1
  145. package/dist/dimensions.js +0 -4
  146. package/dist/direction-C_b4tfRN.js +0 -19
  147. package/dist/direction-DqQB9M37.cjs +0 -1
  148. package/dist/direction.cjs +0 -1
  149. package/dist/direction.js +0 -4
  150. package/dist/external-2YWy569j.js +0 -23
  151. package/dist/external-B6edOwoQ.cjs +0 -1
  152. package/dist/external-B80i4ymZ.js +0 -29
  153. package/dist/external-B9AAGv50.cjs +0 -1
  154. package/dist/external-BYuXBYJh.js +0 -40
  155. package/dist/external-BxmTQZ6m.cjs +0 -1
  156. package/dist/external-DLiGrXn7.cjs +0 -1
  157. package/dist/external-Du5qzfYv.js +0 -35
  158. package/dist/get-CtJEJIC_.js +0 -82
  159. package/dist/get-D2VRwUw4.cjs +0 -1
  160. package/dist/identity.cjs +0 -1
  161. package/dist/identity.js +0 -4
  162. package/dist/index-Bfvg0v-N.cjs +0 -3
  163. package/dist/index-Bv029kh3.js +0 -19
  164. package/dist/index-CqisIWWC.cjs +0 -1
  165. package/dist/index-CyNZHQFw.cjs +0 -1
  166. package/dist/index-qmkoZBNO.js +0 -57
  167. package/dist/index-yz34Wc2p.js +0 -92
  168. package/dist/index.cjs +0 -5
  169. package/dist/index.js +0 -1004
  170. package/dist/kv.cjs +0 -1
  171. package/dist/kv.js +0 -4
  172. package/dist/link.cjs +0 -1
  173. package/dist/link.js +0 -10
  174. package/dist/location-0qDBiCqP.cjs +0 -1
  175. package/dist/location-BIzpxczO.js +0 -95
  176. package/dist/location.cjs +0 -1
  177. package/dist/location.js +0 -4
  178. package/dist/observe.cjs +0 -1
  179. package/dist/observe.js +0 -48
  180. package/dist/record-BwjIgrpU.cjs +0 -1
  181. package/dist/record-tSFQKmdG.js +0 -19
  182. package/dist/record.cjs +0 -1
  183. package/dist/record.js +0 -4
  184. package/dist/runtime.cjs +0 -1
  185. package/dist/runtime.js +0 -4
  186. package/dist/scale-BXy1w8R_.cjs +0 -1
  187. package/dist/scale-DJCMZbfU.js +0 -228
  188. package/dist/scale.cjs +0 -1
  189. package/dist/scale.js +0 -4
  190. package/dist/series-B7l2au4y.cjs +0 -6
  191. package/dist/series-TpAaBlEg.js +0 -2837
  192. package/dist/spatial-DnsaOypA.js +0 -11
  193. package/dist/spatial-DrxzaD5U.cjs +0 -1
  194. package/dist/spatial.cjs +0 -1
  195. package/dist/spatial.js +0 -18
  196. package/dist/src/clamp/index.d.ts +0 -2
  197. package/dist/src/clamp/index.d.ts.map +0 -1
  198. package/dist/src/destructor.d.ts +0 -7
  199. package/dist/src/destructor.d.ts.map +0 -1
  200. package/dist/src/flush.d.ts.map +0 -1
  201. package/dist/src/identity.d.ts +0 -3
  202. package/dist/src/identity.d.ts.map +0 -1
  203. package/dist/src/invert.d.ts +0 -2
  204. package/dist/src/invert.d.ts.map +0 -1
  205. package/dist/src/join.d.ts.map +0 -1
  206. package/dist/src/mock/index.d.ts +0 -2
  207. package/dist/src/mock/index.d.ts.map +0 -1
  208. package/dist/src/optional.d.ts.map +0 -1
  209. package/dist/src/renderable.d.ts +0 -5
  210. package/dist/src/renderable.d.ts.map +0 -1
  211. package/dist/src/replace.d.ts +0 -2
  212. package/dist/src/replace.d.ts.map +0 -1
  213. package/dist/src/shallowCopy.d.ts +0 -2
  214. package/dist/src/shallowCopy.d.ts.map +0 -1
  215. package/dist/src/telem/generate.d.ts +0 -3
  216. package/dist/src/telem/generate.d.ts.map +0 -1
  217. package/dist/src/transform.d.ts +0 -6
  218. package/dist/src/transform.d.ts.map +0 -1
  219. package/dist/src/undefined.d.ts +0 -2
  220. package/dist/src/undefined.d.ts.map +0 -1
  221. package/dist/telem.cjs +0 -1
  222. package/dist/telem.js +0 -18
  223. package/dist/unique.cjs +0 -1
  224. package/dist/unique.js +0 -4
  225. package/dist/url.cjs +0 -1
  226. package/dist/url.js +0 -51
  227. package/dist/worker.cjs +0 -1
  228. package/dist/worker.js +0 -43
  229. package/dist/xy-C-MUIjVs.cjs +0 -1
  230. package/dist/xy-DnrCAZaw.js +0 -154
  231. package/dist/xy.cjs +0 -1
  232. package/dist/xy.js +0 -4
  233. package/dist/zod.cjs +0 -1
  234. package/dist/zod.js +0 -4
  235. package/src/renderable.ts +0 -20
  236. package/src/telem/generate.ts +0 -17
  237. package/src/transform.ts +0 -17
  238. package/src/undefined.ts +0 -14
  239. /package/dist/src/{join.d.ts → deep/join.d.ts} +0 -0
  240. /package/dist/src/{optional.d.ts → optional/optional.d.ts} +0 -0
  241. /package/src/{join.ts → deep/join.ts} +0 -0
  242. /package/src/{optional.ts → optional/optional.ts} +0 -0
  243. /package/src/{flush.ts → scheduler/scheduler.ts} +0 -0
@@ -1,11 +0,0 @@
1
- import { A as e, O as o, a, o as t } from "./base-DRybODwJ.js";
2
- const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
- __proto__: null,
4
- ALIGNMENTS: e,
5
- ORDERS: o,
6
- alignment: a,
7
- order: t
8
- }, Symbol.toStringTag, { value: "Module" }));
9
- export {
10
- s
11
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./base-KIBsp6TI.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,ORDERS:e.ORDERS,alignment:e.alignment,order:e.order},Symbol.toStringTag,{value:"Module"}));exports.spatial=t;
package/dist/spatial.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bounds-C2TKFgVk.cjs"),o=require("./box-rH3ggwXk.cjs"),i=require("./dimensions-Cg5Owbwn.cjs"),n=require("./direction-DqQB9M37.cjs"),s=require("./location-0qDBiCqP.cjs"),r=require("./scale-BXy1w8R_.cjs"),t=require("./spatial-DrxzaD5U.cjs"),c=require("./xy-C-MUIjVs.cjs");exports.bounds=e.bounds;exports.box=o.box;exports.dimensions=i.dimensions;exports.direction=n.direction;exports.location=s.location;exports.scale=r.scale;exports.spatial=t.spatial;exports.xy=c.xy;
package/dist/spatial.js DELETED
@@ -1,18 +0,0 @@
1
- import { b as s } from "./bounds-4BWKPqaP.js";
2
- import { b as e } from "./box-BXWXSkKu.js";
3
- import { d as x } from "./dimensions-DC0uLPwn.js";
4
- import { d as p } from "./direction-C_b4tfRN.js";
5
- import { l as i } from "./location-BIzpxczO.js";
6
- import { s as n } from "./scale-DJCMZbfU.js";
7
- import { s as l } from "./spatial-DnsaOypA.js";
8
- import { x as u } from "./xy-DnrCAZaw.js";
9
- export {
10
- s as bounds,
11
- e as box,
12
- x as dimensions,
13
- p as direction,
14
- i as location,
15
- n as scale,
16
- l as spatial,
17
- u as xy
18
- };
@@ -1,2 +0,0 @@
1
- export * as clamp from './clamp';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clamp/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC"}
@@ -1,7 +0,0 @@
1
- export interface Destructor {
2
- (): void;
3
- }
4
- export interface AsyncDestructor {
5
- (): Promise<void>;
6
- }
7
- //# sourceMappingURL=destructor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destructor.d.ts","sourceRoot":"","sources":["../../src/destructor.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,UAAU;IACzB,IAAI,IAAI,CAAC;CACV;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"flush.d.ts","sourceRoot":"","sources":["../../src/flush.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,OAAO,CAAC,IAAI,CAAsB,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,OAAO,CAAC,IAAI,CACI,CAAC"}
@@ -1,3 +0,0 @@
1
- import { record } from './record';
2
- export declare const isObject: <T extends record.Unknown = record.Unknown>(item?: unknown) => item is T;
3
- //# sourceMappingURL=identity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/identity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAChE,OAAO,OAAO,KACb,IAAI,IAAI,CAAqE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const invert: (condition: boolean) => -1 | 1;
2
- //# sourceMappingURL=invert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invert.d.ts","sourceRoot":"","sources":["../../src/invert.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,MAAM,GAAI,WAAW,OAAO,KAAG,CAAC,CAAC,GAAG,CAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../src/join.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,GACvB,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAAC,EAAE,GACpC,KAAK,GACP,KAAK,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './MockGLBufferController';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mock/index.ts"],"names":[],"mappings":"AASA,cAAc,+BAA+B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../src/optional.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { Stringer } from './primitive/primitive';
2
- export type PureRenderableValue = string | number | undefined;
3
- export type RenderableValue = PureRenderableValue | Stringer;
4
- export declare const convertRenderV: (value: RenderableValue) => string | number | undefined;
5
- //# sourceMappingURL=renderable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderable.d.ts","sourceRoot":"","sources":["../../src/renderable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,QAAQ,CAAC;AAE7D,eAAO,MAAM,cAAc,GAAI,OAAO,eAAe,KAAG,MAAM,GAAG,MAAM,GAAG,SAKzE,CAAC"}
@@ -1,2 +0,0 @@
1
- export type Replace<T, R> = Omit<T, keyof R> & R;
2
- //# sourceMappingURL=replace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/replace.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const shallowCopy: <T>(obj: T) => T;
2
- //# sourceMappingURL=shallowCopy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shallowCopy.d.ts","sourceRoot":"","sources":["../../src/shallowCopy.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,KAAK,CAAC,KAAG,CAIvC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { DataTypeT, TypedArray } from './telem';
2
- export declare const randomSeries: (length: number, dataType: DataTypeT) => TypedArray;
3
- //# sourceMappingURL=generate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/telem/generate.ts"],"names":[],"mappings":"AASA,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE1E,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,EAAE,UAAU,SAAS,KAAG,UAKlE,CAAC"}
@@ -1,6 +0,0 @@
1
- export interface ArrayTransformPayload<E = unknown> {
2
- data: E[];
3
- transformed: boolean;
4
- }
5
- export type ArrayTransform<E = unknown, R = E> = (data: ArrayTransformPayload<E>) => ArrayTransformPayload<R>;
6
- //# sourceMappingURL=transform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/transform.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,OAAO;IAChD,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAC/C,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,KAC3B,qBAAqB,CAAC,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export type IsExactlyUndefined<T> = [T] extends [undefined] ? [undefined] extends [T] ? true : false : false;
2
- //# sourceMappingURL=undefined.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"undefined.d.ts","sourceRoot":"","sources":["../../src/undefined.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,GACvD,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GACrB,IAAI,GACJ,KAAK,GACP,KAAK,CAAC"}
package/dist/telem.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./series-B7l2au4y.cjs");exports.DataType=e.DataType;exports.Density=e.Density;exports.MultiSeries=e.MultiSeries;exports.Rate=e.Rate;exports.Series=e.Series;exports.Size=e.Size;exports.TimeRange=e.TimeRange;exports.TimeSpan=e.TimeSpan;exports.TimeStamp=e.TimeStamp;exports.addSamples=e.addSamples;exports.convertDataType=e.convertDataType;exports.isCrudeSeries=e.isCrudeSeries;exports.isTelemValue=e.isTelemValue;exports.numericTimeRangeZ=e.numericTimeRangeZ;exports.typedArrayZ=e.typedArrayZ;
package/dist/telem.js DELETED
@@ -1,18 +0,0 @@
1
- import { c as s, D as i, M as r, R as t, S as m, d as S, b as T, a as n, T as p, g as d, f as y, i as l, e as u, n as D, t as R } from "./series-TpAaBlEg.js";
2
- export {
3
- s as DataType,
4
- i as Density,
5
- r as MultiSeries,
6
- t as Rate,
7
- m as Series,
8
- S as Size,
9
- T as TimeRange,
10
- n as TimeSpan,
11
- p as TimeStamp,
12
- d as addSamples,
13
- y as convertDataType,
14
- l as isCrudeSeries,
15
- u as isTelemValue,
16
- D as numericTimeRangeZ,
17
- R as typedArrayZ
18
- };
package/dist/unique.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CqisIWWC.cjs");exports.unique=e.unique$1;
package/dist/unique.js DELETED
@@ -1,4 +0,0 @@
1
- import { a as o } from "./index-Bv029kh3.js";
2
- export {
3
- o as unique
4
- };
package/dist/url.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=(...t)=>t.map(n).join(""),n=t=>(t.endsWith("/")||(t+="/"),t.startsWith("/")&&(t=t.slice(1)),t),l=t=>t.endsWith("/")?t.slice(0,-1):t,c=(t,r="")=>t===null?"":`?${Object.entries(t).filter(([,o])=>o==null?!1:Array.isArray(o)?o.length>0:!0).map(([o,s])=>`${r}${o}=${s}`).join("&")}`;class i{protocol;host;port;path;constructor({host:r,port:o,protocol:s="",pathPrefix:e=""}){this.protocol=s,this.host=r,this.port=o,this.path=n(e)}replace(r){return new i({host:r.host??this.host,port:r.port??this.port,protocol:r.protocol??this.protocol,pathPrefix:r.pathPrefix??this.path})}child(r){return new i({...this,pathPrefix:h(this.path,r)})}toString(){return l(`${this.protocol}://${this.host}:${this.port}/${this.path}`)}static UNKNOWN=new i({host:"unknown",port:0})}exports.URL=i;exports.buildQueryString=c;
package/dist/url.js DELETED
@@ -1,51 +0,0 @@
1
- const e = (...t) => t.map(n).join(""), n = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), c = (t) => t.endsWith("/") ? t.slice(0, -1) : t, l = (t, r = "") => t === null ? "" : `?${Object.entries(t).filter(([, o]) => o == null ? !1 : Array.isArray(o) ? o.length > 0 : !0).map(([o, s]) => `${r}${o}=${s}`).join("&")}`;
2
- class i {
3
- protocol;
4
- host;
5
- port;
6
- path;
7
- /**
8
- * @param host - The hostname or IP address of the server.
9
- * @param port - The port number of the server.
10
- * @param protocol - The protocol to use for all requests. Defaults to "".
11
- * @param pathPrefix - A path prefix to use for all requests. Defaults to "".
12
- */
13
- constructor({ host: r, port: o, protocol: s = "", pathPrefix: h = "" }) {
14
- this.protocol = s, this.host = r, this.port = o, this.path = n(h);
15
- }
16
- /**
17
- * Replaces creates a new URL with the specified properties replaced.
18
- * @param props - The properties to replace.
19
- * @returns a new URL.
20
- */
21
- replace(r) {
22
- return new i({
23
- host: r.host ?? this.host,
24
- port: r.port ?? this.port,
25
- protocol: r.protocol ?? this.protocol,
26
- pathPrefix: r.pathPrefix ?? this.path
27
- });
28
- }
29
- /**
30
- * Creates a new url with the given path appended to the current path.
31
- * @param path - the path to append to the URL.
32
- * @returns a new URL.
33
- */
34
- child(r) {
35
- return new i({
36
- ...this,
37
- pathPrefix: e(this.path, r)
38
- });
39
- }
40
- /** @returns a string representation of the url */
41
- toString() {
42
- return c(
43
- `${this.protocol}://${this.host}:${this.port}/${this.path}`
44
- );
45
- }
46
- static UNKNOWN = new i({ host: "unknown", port: 0 });
47
- }
48
- export {
49
- i as URL,
50
- l as buildQueryString
51
- };
package/dist/worker.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class d{sender;handlers;constructor(e){this.sender=e,this.handlers=new Map}handle({data:e}){const n=this.handlers.get(e.type)?.handler;n==null?console.warn(`No handler for ${e.type}`):n(e.payload)}route(e){const n=l(e,this.sender),s=new o(n);return this.handlers.set(e,s),s}}const l=(r,e)=>(n,s)=>e({type:r,payload:n},s);class o{_send;handler;constructor(e){this._send=e,this.handler=null}send(e,n=[]){this._send(e,n)}handle(e){this.handler=e}}const a=()=>{let r,e;const n=t=>{e.handle({data:t})},s=t=>{r.handle({data:t})};return r=new d(n),e=new d(s),[r,e]};exports.RoutedWorker=d;exports.TypedWorker=o;exports.createMockWorkers=a;
package/dist/worker.js DELETED
@@ -1,43 +0,0 @@
1
- class d {
2
- sender;
3
- handlers;
4
- constructor(e) {
5
- this.sender = e, this.handlers = /* @__PURE__ */ new Map();
6
- }
7
- handle({ data: e }) {
8
- const n = this.handlers.get(e.type)?.handler;
9
- n == null ? console.warn(`No handler for ${e.type}`) : n(e.payload);
10
- }
11
- route(e) {
12
- const n = l(e, this.sender), r = new a(n);
13
- return this.handlers.set(e, r), r;
14
- }
15
- }
16
- const l = (s, e) => (n, r) => e({ type: s, payload: n }, r);
17
- class a {
18
- _send;
19
- handler;
20
- constructor(e) {
21
- this._send = e, this.handler = null;
22
- }
23
- send(e, n = []) {
24
- this._send(e, n);
25
- }
26
- handle(e) {
27
- this.handler = e;
28
- }
29
- }
30
- const h = () => {
31
- let s, e;
32
- const n = (t) => {
33
- e.handle({ data: t });
34
- }, r = (t) => {
35
- s.handle({ data: t });
36
- };
37
- return s = new d(n), e = new d(r), [s, e];
38
- };
39
- export {
40
- d as RoutedWorker,
41
- a as TypedWorker,
42
- h as createMockWorkers
43
- };
@@ -1 +0,0 @@
1
- "use strict";const O=require("zod"),i=require("./base-KIBsp6TI.cjs"),z=O.z.union([O.z.number(),i.xy,i.numberCouple,i.dimensions,i.signedDimensions,i.clientXY]),o=(t,n)=>{if(typeof t=="string"){if(n===void 0)throw new Error("The y coordinate must be given.");return t==="x"?{x:n,y:0}:{x:0,y:n}}return typeof t=="number"?{x:t,y:n??t}:Array.isArray(t)?{x:t[0],y:t[1]}:"signedWidth"in t?{x:t.signedWidth,y:t.signedHeight}:"clientX"in t?{x:t.clientX,y:t.clientY}:"width"in t?{x:t.width,y:t.height}:{x:t.x,y:t.y}},x=Object.freeze({x:0,y:0}),P=Object.freeze({x:1,y:1}),q=Object.freeze({x:1/0,y:1/0}),v=Object.freeze({x:NaN,y:NaN}),g=(t,n,e=0)=>{const r=o(t),s=o(n);return e===0?r.x===s.x&&r.y===s.y:Math.abs(r.x-s.x)<=e&&Math.abs(r.y-s.y)<=e},I=t=>g(t,x),b=(t,n,e)=>{const r=o(t),s=o(n,e);return{x:r.x*s.x,y:r.y*s.y}},_=(t,n)=>{const e=o(t);return{x:e.x+n,y:e.y}},j=(t,n)=>{const e=o(t);return{x:e.x,y:e.y+n}},p=(t,n,e,...r)=>{if(typeof n=="string"){if(typeof e!="number")throw new Error("The value must be a number.");return n==="x"?_(t,e):j(t,e)}if(typeof n=="object"&&"x"in n&&typeof n.x=="string"){const s=o(e),c=o(t);return n.x==="left"?s.x=-s.x:n.x==="center"&&(s.x=0),n.y==="top"?s.y=-s.y:n.y==="center"&&(s.y=0),{x:c.x+s.x,y:c.y+s.y}}return[t,n,e??x,...r].reduce((s,c)=>{const y=o(c);return{x:s.x+y.x,y:s.y+y.y}},x)},Z=(t,n,e)=>{const r=o(t);return n==="x"?{x:e,y:r.y}:{x:r.x,y:e}},A=(t,n)=>{const e=o(t),r=o(n);return Math.sqrt((e.x-r.x)**2+(e.y-r.y)**2)},T=(t,n)=>{const e=o(t),r=o(n);return{x:r.x-e.x,y:r.y-e.y}},H=t=>{const n=o(t);return Number.isNaN(n.x)||Number.isNaN(n.y)},R=t=>{const n=o(t);return Number.isFinite(n.x)&&Number.isFinite(n.y)},S=t=>{const n=o(t);return[n.x,n.y]},W=t=>{const n=o(t);return{left:n.x,top:n.y}},w=(t,n=0)=>{const e=o(t);return{x:Number(e.x.toFixed(n)),y:Number(e.y.toFixed(n))}},d=(t,n)=>{const e=o(t),r=o(n);return{x:e.x-r.x,y:e.y-r.y}},N=t=>{const n=o(t),e=Math.hypot(n.x,n.y);return e===0?{x:0,y:0}:{x:-n.y/e,y:n.x/e}},E=t=>{const n=o(t),e=Math.hypot(n.x,n.y);return e===0?{x:0,y:0}:{x:n.x/e,y:n.y/e}},F=(...t)=>{const n=t.reduce((e,r)=>p(e,r),x);return b(n,1/t.length)},C=(t,n)=>{const e=[];for(let r=0;r<t.length;r++){const s=t[r];let c,y,h,u;if(r===0){const a=t[r+1],l=d(a,s);y=N(l),h=y,u=n}else if(r===t.length-1){const a=t[r-1],l=d(s,a);c=N(l),h=c,u=n}else{const a=t[r-1],l=t[r+1],f=d(s,a),m=d(l,s);c=N(f),y=N(m);const Y=Math.acos((f.x*m.x+f.y*m.y)/(Math.hypot(f.x,f.y)*Math.hypot(m.x,m.y))),M=Math.sin(Y/2);M===0?u=n:u=n/M,h=E(F(c,y))}e.push(b(h,u))}return e},D=t=>{const n=o(t);return{x:n.y,y:n.x}},X=t=>{const n=o(t);return{x:Math.round(n.x),y:Math.round(n.y)}},L=t=>{const n=o(t);return{x:1/n.x,y:1/n.y}},k=Object.freeze(Object.defineProperty({__proto__:null,INFINITY:q,NAN:v,ONE:P,ZERO:x,average:F,calculateMiters:C,clientXY:i.clientXY,construct:o,couple:S,crudeZ:z,css:W,distance:A,equals:g,isFinite:R,isNan:H,isZero:I,normal:N,normalize:E,reciprocal:L,round:X,scale:b,set:Z,sub:d,swap:D,translate:p,translateX:_,translateY:j,translation:T,truncate:w,xy:i.xy},Symbol.toStringTag,{value:"Module"}));exports.ONE=P;exports.ZERO=x;exports.construct=o;exports.crudeZ=z;exports.equals=g;exports.round=X;exports.translate=p;exports.truncate=w;exports.xy=k;
@@ -1,154 +0,0 @@
1
- import { z as p } from "zod";
2
- import { x as b, n as v, d as I, s as A, j as M } from "./base-DRybODwJ.js";
3
- const E = p.union([
4
- p.number(),
5
- b,
6
- v,
7
- I,
8
- A,
9
- M
10
- ]), s = (t, n) => {
11
- if (typeof t == "string") {
12
- if (n === void 0) throw new Error("The y coordinate must be given.");
13
- return t === "x" ? { x: n, y: 0 } : { x: 0, y: n };
14
- }
15
- return typeof t == "number" ? { x: t, y: n ?? t } : Array.isArray(t) ? { x: t[0], y: t[1] } : "signedWidth" in t ? { x: t.signedWidth, y: t.signedHeight } : "clientX" in t ? { x: t.clientX, y: t.clientY } : "width" in t ? { x: t.width, y: t.height } : { x: t.x, y: t.y };
16
- }, d = Object.freeze({ x: 0, y: 0 }), T = Object.freeze({ x: 1, y: 1 }), X = Object.freeze({ x: 1 / 0, y: 1 / 0 }), Y = Object.freeze({ x: NaN, y: NaN }), O = (t, n, e = 0) => {
17
- const r = s(t), o = s(n);
18
- return e === 0 ? r.x === o.x && r.y === o.y : Math.abs(r.x - o.x) <= e && Math.abs(r.y - o.y) <= e;
19
- }, Z = (t) => O(t, d), h = (t, n, e) => {
20
- const r = s(t), o = s(n, e);
21
- return { x: r.x * o.x, y: r.y * o.y };
22
- }, P = (t, n) => {
23
- const e = s(t);
24
- return { x: e.x + n, y: e.y };
25
- }, _ = (t, n) => {
26
- const e = s(t);
27
- return { x: e.x, y: e.y + n };
28
- }, j = (t, n, e, ...r) => {
29
- if (typeof n == "string") {
30
- if (typeof e != "number") throw new Error("The value must be a number.");
31
- return n === "x" ? P(t, e) : _(t, e);
32
- }
33
- if (typeof n == "object" && "x" in n && typeof n.x == "string") {
34
- const o = s(e), y = s(t);
35
- return n.x === "left" ? o.x = -o.x : n.x === "center" && (o.x = 0), n.y === "top" ? o.y = -o.y : n.y === "center" && (o.y = 0), { x: y.x + o.x, y: y.y + o.y };
36
- }
37
- return [t, n, e ?? d, ...r].reduce((o, y) => {
38
- const c = s(y);
39
- return { x: o.x + c.x, y: o.y + c.y };
40
- }, d);
41
- }, q = (t, n, e) => {
42
- const r = s(t);
43
- return n === "x" ? { x: e, y: r.y } : { x: r.x, y: e };
44
- }, H = (t, n) => {
45
- const e = s(t), r = s(n);
46
- return Math.sqrt((e.x - r.x) ** 2 + (e.y - r.y) ** 2);
47
- }, S = (t, n) => {
48
- const e = s(t), r = s(n);
49
- return { x: r.x - e.x, y: r.y - e.y };
50
- }, W = (t) => {
51
- const n = s(t);
52
- return Number.isNaN(n.x) || Number.isNaN(n.y);
53
- }, C = (t) => {
54
- const n = s(t);
55
- return Number.isFinite(n.x) && Number.isFinite(n.y);
56
- }, D = (t) => {
57
- const n = s(t);
58
- return [n.x, n.y];
59
- }, L = (t) => {
60
- const n = s(t);
61
- return { left: n.x, top: n.y };
62
- }, R = (t, n = 0) => {
63
- const e = s(t);
64
- return {
65
- x: Number(e.x.toFixed(n)),
66
- y: Number(e.y.toFixed(n))
67
- };
68
- }, f = (t, n) => {
69
- const e = s(t), r = s(n);
70
- return { x: e.x - r.x, y: e.y - r.y };
71
- }, m = (t) => {
72
- const n = s(t), e = Math.hypot(n.x, n.y);
73
- return e === 0 ? { x: 0, y: 0 } : { x: -n.y / e, y: n.x / e };
74
- }, w = (t) => {
75
- const n = s(t), e = Math.hypot(n.x, n.y);
76
- return e === 0 ? { x: 0, y: 0 } : { x: n.x / e, y: n.y / e };
77
- }, z = (...t) => {
78
- const n = t.reduce((e, r) => j(e, r), d);
79
- return h(n, 1 / t.length);
80
- }, $ = (t, n) => {
81
- const e = [];
82
- for (let r = 0; r < t.length; r++) {
83
- const o = t[r];
84
- let y, c, N, i;
85
- if (r === 0) {
86
- const x = t[r + 1], u = f(x, o);
87
- c = m(u), N = c, i = n;
88
- } else if (r === t.length - 1) {
89
- const x = t[r - 1], u = f(o, x);
90
- y = m(u), N = y, i = n;
91
- } else {
92
- const x = t[r - 1], u = t[r + 1], a = f(o, x), l = f(u, o);
93
- y = m(a), c = m(l);
94
- const F = Math.acos(
95
- (a.x * l.x + a.y * l.y) / (Math.hypot(a.x, a.y) * Math.hypot(l.x, l.y))
96
- ), g = Math.sin(F / 2);
97
- g === 0 ? i = n : i = n / g, N = w(z(y, c));
98
- }
99
- e.push(h(N, i));
100
- }
101
- return e;
102
- }, k = (t) => {
103
- const n = s(t);
104
- return { x: n.y, y: n.x };
105
- }, B = (t) => {
106
- const n = s(t);
107
- return { x: Math.round(n.x), y: Math.round(n.y) };
108
- }, G = (t) => {
109
- const n = s(t);
110
- return { x: 1 / n.x, y: 1 / n.y };
111
- }, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
112
- __proto__: null,
113
- INFINITY: X,
114
- NAN: Y,
115
- ONE: T,
116
- ZERO: d,
117
- average: z,
118
- calculateMiters: $,
119
- clientXY: M,
120
- construct: s,
121
- couple: D,
122
- crudeZ: E,
123
- css: L,
124
- distance: H,
125
- equals: O,
126
- isFinite: C,
127
- isNan: W,
128
- isZero: Z,
129
- normal: m,
130
- normalize: w,
131
- reciprocal: G,
132
- round: B,
133
- scale: h,
134
- set: q,
135
- sub: f,
136
- swap: k,
137
- translate: j,
138
- translateX: P,
139
- translateY: _,
140
- translation: S,
141
- truncate: R,
142
- xy: b
143
- }, Symbol.toStringTag, { value: "Module" }));
144
- export {
145
- T as O,
146
- d as Z,
147
- R as a,
148
- E as b,
149
- s as c,
150
- O as e,
151
- B as r,
152
- j as t,
153
- Q as x
154
- };
package/dist/xy.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./xy-C-MUIjVs.cjs");exports.xy=e.xy;
package/dist/xy.js DELETED
@@ -1,4 +0,0 @@
1
- import { x as r } from "./xy-DnrCAZaw.js";
2
- export {
3
- r as xy
4
- };
package/dist/zod.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BxmTQZ6m.cjs");exports.zod=e.external;
package/dist/zod.js DELETED
@@ -1,4 +0,0 @@
1
- import { e as r } from "./external-2YWy569j.js";
2
- export {
3
- r as zod
4
- };
package/src/renderable.ts DELETED
@@ -1,20 +0,0 @@
1
- // Copyright 2025 Synnax Labs, Inc.
2
- //
3
- // Use of this software is governed by the Business Source License included in the file
4
- // licenses/BSL.txt.
5
- //
6
- // As of the Change Date specified in that file, in accordance with the Business Source
7
- // License, use of this software will be governed by the Apache License, Version 2.0,
8
- // included in the file licenses/APL.txt.
9
-
10
- import { type Stringer } from "@/primitive/primitive";
11
-
12
- export type PureRenderableValue = string | number | undefined;
13
- export type RenderableValue = PureRenderableValue | Stringer;
14
-
15
- export const convertRenderV = (value: RenderableValue): string | number | undefined => {
16
- if (value === undefined || typeof value === "string" || typeof value === "number")
17
- return value;
18
- if (value.toString === undefined) throw new Error("invalid renderer");
19
- return value.toString();
20
- };
@@ -1,17 +0,0 @@
1
- // Copyright 2025 Synnax Labs, Inc.
2
- //
3
- // Use of this software is governed by the Business Source License included in the file
4
- // licenses/BSL.txt.
5
- //
6
- // As of the Change Date specified in that file, in accordance with the Business Source
7
- // License, use of this software will be governed by the Apache License, Version 2.0,
8
- // included in the file licenses/APL.txt.
9
-
10
- import { DataType, type DataTypeT, type TypedArray } from "@/telem/telem";
11
-
12
- export const randomSeries = (length: number, dataType: DataTypeT): TypedArray => {
13
- // create random bytes of the correct length
14
- const bytes = new Uint8Array(length * new DataType(dataType).density.valueOf());
15
- for (let i = 0; i < bytes.byteLength; i++) bytes[i] = Math.floor(Math.random() * 256);
16
- return new new DataType(dataType).Array(bytes.buffer);
17
- };
package/src/transform.ts DELETED
@@ -1,17 +0,0 @@
1
- // Copyright 2025 Synnax Labs, Inc.
2
- //
3
- // Use of this software is governed by the Business Source License included in the file
4
- // licenses/BSL.txt.
5
- //
6
- // As of the Change Date specified in that file, in accordance with the Business Source
7
- // License, use of this software will be governed by the Apache License, Version 2.0,
8
- // included in the file licenses/APL.txt.
9
-
10
- export interface ArrayTransformPayload<E = unknown> {
11
- data: E[];
12
- transformed: boolean;
13
- }
14
-
15
- export type ArrayTransform<E = unknown, R = E> = (
16
- data: ArrayTransformPayload<E>,
17
- ) => ArrayTransformPayload<R>;
package/src/undefined.ts DELETED
@@ -1,14 +0,0 @@
1
- // Copyright 2025 Synnax Labs, Inc.
2
- //
3
- // Use of this software is governed by the Business Source License included in the file
4
- // licenses/BSL.txt.
5
- //
6
- // As of the Change Date specified in that file, in accordance with the Business Source
7
- // License, use of this software will be governed by the Apache License, Version 2.0,
8
- // included in the file licenses/APL.txt.
9
-
10
- export type IsExactlyUndefined<T> = [T] extends [undefined] // T can be assigned to undefined
11
- ? [undefined] extends [T] // undefined can be assigned to T
12
- ? true // both directions → exactly undefined
13
- : false
14
- : false;
File without changes
File without changes
File without changes
File without changes