@nberlette/math 0.7.1 → 0.7.3

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 (106) hide show
  1. package/cjs/constants/e.d.ts +14 -0
  2. package/cjs/constants/e.d.ts.map +1 -1
  3. package/cjs/constants/epsilon.d.ts +14 -0
  4. package/cjs/constants/epsilon.d.ts.map +1 -1
  5. package/cjs/constants/ln2.d.ts +14 -0
  6. package/cjs/constants/ln2.d.ts.map +1 -1
  7. package/cjs/constants/log10e.d.ts +14 -0
  8. package/cjs/constants/log10e.d.ts.map +1 -1
  9. package/cjs/constants/log2e.d.ts +14 -0
  10. package/cjs/constants/log2e.d.ts.map +1 -1
  11. package/cjs/constants/max_safe_integer.d.ts +14 -0
  12. package/cjs/constants/max_safe_integer.d.ts.map +1 -1
  13. package/cjs/constants/max_value.d.ts +14 -0
  14. package/cjs/constants/max_value.d.ts.map +1 -1
  15. package/cjs/constants/min_safe_integer.d.ts +14 -0
  16. package/cjs/constants/min_safe_integer.d.ts.map +1 -1
  17. package/cjs/constants/min_value.d.ts +14 -0
  18. package/cjs/constants/min_value.d.ts.map +1 -1
  19. package/cjs/constants/pi.d.ts +14 -0
  20. package/cjs/constants/pi.d.ts.map +1 -1
  21. package/cjs/constants/sqrt1_2.d.ts +14 -0
  22. package/cjs/constants/sqrt1_2.d.ts.map +1 -1
  23. package/cjs/constants/sqrt2.d.ts +14 -0
  24. package/cjs/constants/sqrt2.d.ts.map +1 -1
  25. package/cjs/float16/guards.d.ts +1 -0
  26. package/cjs/float16/guards.d.ts.map +1 -1
  27. package/cjs/float16/guards.js +1 -0
  28. package/cjs/float16/guards.js.map +1 -1
  29. package/cjs/float32/guards.d.ts +2 -0
  30. package/cjs/float32/guards.d.ts.map +1 -1
  31. package/cjs/float32/guards.js +2 -0
  32. package/cjs/float32/guards.js.map +1 -1
  33. package/cjs/guards/integer.js +3 -3
  34. package/cjs/guards/integer.js.map +1 -1
  35. package/cjs/types/finite.d.ts +1 -1
  36. package/cjs/types/finite.js +1 -1
  37. package/cjs/types/float.d.ts +1 -1
  38. package/cjs/types/integer.d.ts +1 -1
  39. package/cjs/types/precision.d.ts +1 -1
  40. package/cjs/types/precision.js +1 -1
  41. package/cjs/types/safe_integer.d.ts +1 -1
  42. package/cjs/types/safe_integer.js +1 -1
  43. package/esm/constants/e.d.ts +14 -0
  44. package/esm/constants/e.d.ts.map +1 -1
  45. package/esm/constants/epsilon.d.ts +14 -0
  46. package/esm/constants/epsilon.d.ts.map +1 -1
  47. package/esm/constants/ln2.d.ts +14 -0
  48. package/esm/constants/ln2.d.ts.map +1 -1
  49. package/esm/constants/log10e.d.ts +14 -0
  50. package/esm/constants/log10e.d.ts.map +1 -1
  51. package/esm/constants/log2e.d.ts +14 -0
  52. package/esm/constants/log2e.d.ts.map +1 -1
  53. package/esm/constants/max_safe_integer.d.ts +14 -0
  54. package/esm/constants/max_safe_integer.d.ts.map +1 -1
  55. package/esm/constants/max_value.d.ts +14 -0
  56. package/esm/constants/max_value.d.ts.map +1 -1
  57. package/esm/constants/min_safe_integer.d.ts +14 -0
  58. package/esm/constants/min_safe_integer.d.ts.map +1 -1
  59. package/esm/constants/min_value.d.ts +14 -0
  60. package/esm/constants/min_value.d.ts.map +1 -1
  61. package/esm/constants/pi.d.ts +14 -0
  62. package/esm/constants/pi.d.ts.map +1 -1
  63. package/esm/constants/sqrt1_2.d.ts +14 -0
  64. package/esm/constants/sqrt1_2.d.ts.map +1 -1
  65. package/esm/constants/sqrt2.d.ts +14 -0
  66. package/esm/constants/sqrt2.d.ts.map +1 -1
  67. package/esm/float16/guards.d.ts +1 -0
  68. package/esm/float16/guards.d.ts.map +1 -1
  69. package/esm/float16/guards.js +1 -0
  70. package/esm/float16/guards.js.map +1 -1
  71. package/esm/float32/guards.d.ts +2 -0
  72. package/esm/float32/guards.d.ts.map +1 -1
  73. package/esm/float32/guards.js +2 -0
  74. package/esm/float32/guards.js.map +1 -1
  75. package/esm/guards/integer.js +3 -3
  76. package/esm/guards/integer.js.map +1 -1
  77. package/esm/types/finite.d.ts +1 -1
  78. package/esm/types/finite.js +1 -1
  79. package/esm/types/float.d.ts +1 -1
  80. package/esm/types/integer.d.ts +1 -1
  81. package/esm/types/precision.d.ts +1 -1
  82. package/esm/types/precision.js +1 -1
  83. package/esm/types/safe_integer.d.ts +1 -1
  84. package/esm/types/safe_integer.js +1 -1
  85. package/package.json +1 -1
  86. package/src/constants/e.ts +14 -0
  87. package/src/constants/epsilon.ts +14 -0
  88. package/src/constants/ln2.ts +14 -0
  89. package/src/constants/log10e.ts +14 -0
  90. package/src/constants/log2e.ts +14 -0
  91. package/src/constants/max_safe_integer.ts +14 -0
  92. package/src/constants/max_value.ts +14 -0
  93. package/src/constants/min_safe_integer.ts +14 -0
  94. package/src/constants/min_value.ts +14 -0
  95. package/src/constants/pi.ts +14 -0
  96. package/src/constants/sqrt1_2.ts +14 -0
  97. package/src/constants/sqrt2.ts +14 -0
  98. package/src/float16/guards.ts +2 -0
  99. package/src/float32/guards.ts +4 -0
  100. package/src/guards/integer.ts +4 -4
  101. package/src/types/finite.ts +1 -1
  102. package/src/types/float.ts +1 -1
  103. package/src/types/integer.ts +1 -1
  104. package/src/types/precision.ts +1 -1
  105. package/src/types/safe_integer.ts +1 -1
  106. package/nberlette-math-0.7.0.tgz +0 -0
@@ -20,5 +20,19 @@
20
20
  * @tags E
21
21
  */
22
22
  export declare const E: E;
23
+ /**
24
+ * Type-level alias of the `E` constant exported by this module. This allows
25
+ * `E` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { E } from "@nick/math/constants/e";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<E>(2.718281828459045);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type E = 2.718281828459045;
24
38
  //# sourceMappingURL=e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"e.d.ts","sourceRoot":"","sources":["../../src/constants/e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,CAAC,EAAE,CAAqB,CAAC;AAEtC,MAAM,MAAM,CAAC,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"e.d.ts","sourceRoot":"","sources":["../../src/constants/e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,CAAC,EAAE,CAAqB,CAAC;AAEtC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,CAAC,GAAG,iBAAiB,CAAC"}
@@ -27,5 +27,19 @@
27
27
  * @tags Number, Epsilon
28
28
  */
29
29
  export declare const EPSILON: EPSILON;
30
+ /**
31
+ * Type-level alias of the `EPSILON` constant exported by this module. This allows
32
+ * `EPSILON` to be imported using a standard named import (i.e. the _value_ level)
33
+ * or via type-only import for a compile-time only reference to the same value.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * import type { EPSILON } from "@nick/math/constants/epsilon";
38
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
39
+ *
40
+ * expectType<EPSILON>(2.220446049250313e-16);
41
+ * ```
42
+ * @category Constants
43
+ */
30
44
  export type EPSILON = 2.220446049250313e-16;
31
45
  //# sourceMappingURL=epsilon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"epsilon.d.ts","sourceRoot":"","sources":["../../src/constants/epsilon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,OAA+B,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC"}
1
+ {"version":3,"file":"epsilon.d.ts","sourceRoot":"","sources":["../../src/constants/epsilon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,OAA+B,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const LN2: LN2;
23
+ /**
24
+ * Type-level alias of the `LN2` constant exported by this module. This allows
25
+ * `LN2` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { LN2 } from "@nick/math/constants/ln2";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<LN2>(0.6931471805599453);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type LN2 = 0.6931471805599453;
24
38
  //# sourceMappingURL=ln2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ln2.d.ts","sourceRoot":"","sources":["../../src/constants/ln2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,EAAE,GAAwB,CAAC;AAC3C,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ln2.d.ts","sourceRoot":"","sources":["../../src/constants/ln2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,EAAE,GAAwB,CAAC;AAC3C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const LOG10E: LOG10E;
23
+ /**
24
+ * Type-level alias of the `LOG10E` constant exported by this module. This allows
25
+ * `LOG10E` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { LOG10E } from "@nick/math/constants/log10e";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<LOG10E>(0.4342944819032518);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type LOG10E = 0.4342944819032518;
24
38
  //# sourceMappingURL=log10e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log10e.d.ts","sourceRoot":"","sources":["../../src/constants/log10e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,MAA2B,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"log10e.d.ts","sourceRoot":"","sources":["../../src/constants/log10e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,MAA2B,CAAC;AACjD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,MAAM,GAAG,kBAAkB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const LOG2E: LOG2E;
23
+ /**
24
+ * Type-level alias of the `LOG2E` constant exported by this module. This allows
25
+ * `LOG2E` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { LOG2E } from "@nick/math/constants/log2e";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<LOG2E>(1.4426950408889634);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type LOG2E = 1.4426950408889634;
24
38
  //# sourceMappingURL=log2e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log2e.d.ts","sourceRoot":"","sources":["../../src/constants/log2e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,KAA0B,CAAC;AAC/C,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"log2e.d.ts","sourceRoot":"","sources":["../../src/constants/log2e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,KAA0B,CAAC;AAC/C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC"}
@@ -21,5 +21,19 @@
21
21
  * @category Constants
22
22
  */
23
23
  export declare const MAX_SAFE_INTEGER: MAX_SAFE_INTEGER;
24
+ /**
25
+ * Type-level alias of the `MAX_SAFE_INTEGER` constant exported by this module. This allows
26
+ * `MAX_SAFE_INTEGER` to be imported using a standard named import (i.e. the _value_ level)
27
+ * or via type-only import for a compile-time only reference to the same value.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * import type { MAX_SAFE_INTEGER } from "@nick/math/constants/max-safe-integer";
32
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
33
+ *
34
+ * expectType<MAX_SAFE_INTEGER>(9007199254740991);
35
+ * ```
36
+ * @category Constants
37
+ */
24
38
  export type MAX_SAFE_INTEGER = 9007199254740991;
25
39
  //# sourceMappingURL=max_safe_integer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"max_safe_integer.d.ts","sourceRoot":"","sources":["../../src/constants/max_safe_integer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAAmC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"max_safe_integer.d.ts","sourceRoot":"","sources":["../../src/constants/max_safe_integer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAAmC,CAAC;AACnE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const MAX_VALUE: MAX_VALUE;
23
+ /**
24
+ * Type-level alias of the `MAX_VALUE` constant exported by this module. This allows
25
+ * `MAX_VALUE` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { MAX_VALUE } from "@nick/math/constants/max-value";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<MAX_VALUE>(1.7976931348623157e308);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type MAX_VALUE = 1.7976931348623157e308;
24
38
  //# sourceMappingURL=max_value.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"max_value.d.ts","sourceRoot":"","sources":["../../src/constants/max_value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,SAAkC,CAAC;AAC3D,MAAM,MAAM,SAAS,GAAG,sBAAsB,CAAC"}
1
+ {"version":3,"file":"max_value.d.ts","sourceRoot":"","sources":["../../src/constants/max_value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,SAAkC,CAAC;AAC3D;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GAAG,sBAAsB,CAAC"}
@@ -22,5 +22,19 @@
22
22
  * @category Constants
23
23
  */
24
24
  export declare const MIN_SAFE_INTEGER: MIN_SAFE_INTEGER;
25
+ /**
26
+ * Type-level alias of the `MIN_SAFE_INTEGER` constant exported by this module. This allows
27
+ * `MIN_SAFE_INTEGER` to be imported using a standard named import (i.e. the _value_ level)
28
+ * or via type-only import for a compile-time only reference to the same value.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * import type { MIN_SAFE_INTEGER } from "@nick/math/constants/min-safe-integer";
33
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
34
+ *
35
+ * expectType<MIN_SAFE_INTEGER>(-9007199254740991);
36
+ * ```
37
+ * @category Constants
38
+ */
25
39
  export type MIN_SAFE_INTEGER = -9007199254740991;
26
40
  //# sourceMappingURL=min_safe_integer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"min_safe_integer.d.ts","sourceRoot":"","sources":["../../src/constants/min_safe_integer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAAoC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,CAAC"}
1
+ {"version":3,"file":"min_safe_integer.d.ts","sourceRoot":"","sources":["../../src/constants/min_safe_integer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,gBAAoC,CAAC;AACpE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const MIN_VALUE: MIN_VALUE;
23
+ /**
24
+ * Type-level alias of the `MIN_VALUE` constant exported by this module. This allows
25
+ * `MIN_VALUE` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { MIN_VALUE } from "@nick/math/constants/min-value";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<MIN_VALUE>(5e-324);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type MIN_VALUE = 5e-324;
24
38
  //# sourceMappingURL=min_value.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"min_value.d.ts","sourceRoot":"","sources":["../../src/constants/min_value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,SAAkB,CAAC;AAC3C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"min_value.d.ts","sourceRoot":"","sources":["../../src/constants/min_value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,SAAkB,CAAC;AAC3C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const PI: PI;
23
+ /**
24
+ * Type-level alias of the `PI` constant exported by this module. This allows
25
+ * `PI` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { PI } from "@nick/math/constants/pi";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<PI>(3.141592653589793);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type PI = 3.141592653589793;
24
38
  //# sourceMappingURL=pi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../../src/constants/pi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,EAAE,EAAE,EAAsB,CAAC;AACxC,MAAM,MAAM,EAAE,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../../src/constants/pi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,EAAE,EAAE,EAAsB,CAAC;AACxC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,EAAE,GAAG,iBAAiB,CAAC"}
@@ -19,5 +19,19 @@
19
19
  * @category Constants
20
20
  */
21
21
  export declare const SQRT1_2: SQRT1_2;
22
+ /**
23
+ * Type-level alias of the `SQRT1_2` constant exported by this module. This allows
24
+ * `SQRT1_2` to be imported using a standard named import (i.e. the _value_ level)
25
+ * or via type-only import for a compile-time only reference to the same value.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * import type { SQRT1_2 } from "@nick/math/constants/sqrt1_2";
30
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
31
+ *
32
+ * expectType<SQRT1_2>(0.7071067811865476);
33
+ * ```
34
+ * @category Constants
35
+ */
22
36
  export type SQRT1_2 = 0.7071067811865476;
23
37
  //# sourceMappingURL=sqrt1_2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqrt1_2.d.ts","sourceRoot":"","sources":["../../src/constants/sqrt1_2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,OAA4B,CAAC;AACnD,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"sqrt1_2.d.ts","sourceRoot":"","sources":["../../src/constants/sqrt1_2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,OAA4B,CAAC;AACnD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC"}
@@ -19,5 +19,19 @@
19
19
  * @category Constants
20
20
  */
21
21
  export declare const SQRT2: SQRT2;
22
+ /**
23
+ * Type-level alias of the `SQRT2` constant exported by this module. This allows
24
+ * `SQRT2` to be imported using a standard named import (i.e. the _value_ level)
25
+ * or via type-only import for a compile-time only reference to the same value.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * import type { SQRT2 } from "@nick/math/constants/sqrt2";
30
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
31
+ *
32
+ * expectType<SQRT2>(1.4142135623730951);
33
+ * ```
34
+ * @category Constants
35
+ */
22
36
  export type SQRT2 = 1.4142135623730951;
23
37
  //# sourceMappingURL=sqrt2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqrt2.d.ts","sourceRoot":"","sources":["../../src/constants/sqrt2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,KAA0B,CAAC;AAC/C,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"sqrt2.d.ts","sourceRoot":"","sources":["../../src/constants/sqrt2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,KAA0B,CAAC;AAC/C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC"}
@@ -18,5 +18,6 @@ import type { Float16 } from "../types/float.js";
18
18
  * @tags float16
19
19
  */
20
20
  export declare function isFloat16<N extends number>(it: N): it is Float16<N>;
21
+ /** @inheritDoc */
21
22
  export declare function isFloat16(it: unknown): it is Float16<number>;
22
23
  //# sourceMappingURL=guards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/float16/guards.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;AACrE,wBAAgB,SAAS,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/float16/guards.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;AACrE,kBAAkB;AAClB,wBAAgB,SAAS,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC"}
@@ -17,6 +17,7 @@ exports.isFloat16 = isFloat16;
17
17
  */
18
18
  const nan_js_1 = require("../guards/nan.js");
19
19
  const round_js_1 = require("./round.js");
20
+ /** @inheritDoc */
20
21
  function isFloat16(it) {
21
22
  return typeof it === "number" && !(0, nan_js_1.isNaN)(it) && it === (0, round_js_1.roundFloat16)(it);
22
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"guards.js","sourceRoot":"","sources":["../../src/float16/guards.ts"],"names":[],"mappings":";;AAsCA,8BAEC;AAxCD;;;;;;;;;;;;;GAaG;AACH,6CAAyC;AAEzC,yCAA0C;AAsB1C,SAAgB,SAAS,CAAC,EAAW;IACnC,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,IAAA,cAAK,EAAC,EAAE,CAAC,IAAI,EAAE,KAAK,IAAA,uBAAY,EAAC,EAAE,CAAC,CAAC;AACzE,CAAC"}
1
+ {"version":3,"file":"guards.js","sourceRoot":"","sources":["../../src/float16/guards.ts"],"names":[],"mappings":";;AAwCA,8BAEC;AA1CD;;;;;;;;;;;;;GAaG;AACH,6CAAyC;AAEzC,yCAA0C;AAuB1C,kBAAkB;AAClB,SAAgB,SAAS,CAAC,EAAW;IACnC,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,IAAA,cAAK,EAAC,EAAE,CAAC,IAAI,EAAE,KAAK,IAAA,uBAAY,EAAC,EAAE,CAAC,CAAC;AACzE,CAAC"}
@@ -19,6 +19,7 @@ import type { Float32 } from "../types/float.js";
19
19
  * @tags float32
20
20
  */
21
21
  export declare function isFloat32<N extends number>(it: N): it is Float32<N>;
22
+ /** @inheritDoc */
22
23
  export declare function isFloat32(it: unknown): it is Float32<number>;
23
24
  /**
24
25
  * Checks if the given value is a finite float32 number, as per the IEEE
@@ -33,5 +34,6 @@ export declare function isFloat32(it: unknown): it is Float32<number>;
33
34
  * @tags float32
34
35
  */
35
36
  export declare function isFiniteFloat32<N extends number>(it: N): it is Finite<N> & Float32<N>;
37
+ /** @inheritDoc */
36
38
  export declare function isFiniteFloat32(it: unknown): it is Float32<number>;
37
39
  //# sourceMappingURL=guards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/float32/guards.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;AACrE,wBAAgB,SAAS,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;AAK9D;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,EAAE,EAAE,CAAC,GACJ,EAAE,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAChC,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/float32/guards.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;AACrE,kBAAkB;AAClB,wBAAgB,SAAS,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;AAM9D;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,EAAE,EAAE,CAAC,GACJ,EAAE,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAChC,kBAAkB;AAClB,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC"}
@@ -20,9 +20,11 @@ exports.isFiniteFloat32 = isFiniteFloat32;
20
20
  const nan_js_1 = require("../guards/nan.js");
21
21
  const finite_js_1 = require("../guards/finite.js");
22
22
  const round_js_1 = require("./round.js");
23
+ /** @inheritDoc */
23
24
  function isFloat32(it) {
24
25
  return typeof it === "number" && !(0, nan_js_1.isNaN)(it) && it === (0, round_js_1.roundFloat32)(it);
25
26
  }
27
+ /** @inheritDoc */
26
28
  function isFiniteFloat32(it) {
27
29
  return isFloat32(it) && (0, finite_js_1.isFinite)(it);
28
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"guards.js","sourceRoot":"","sources":["../../src/float32/guards.ts"],"names":[],"mappings":";;AAwCA,8BAEC;AAkBD,0CAEC;AA9DD;;;;;;;;;;;;;;GAcG;AACH,6CAAyC;AACzC,mDAA4D;AAE5D,yCAA0C;AAsB1C,SAAgB,SAAS,CAAC,EAAW;IACnC,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,IAAA,cAAK,EAAC,EAAE,CAAC,IAAI,EAAE,KAAK,IAAA,uBAAY,EAAC,EAAE,CAAC,CAAC;AACzE,CAAC;AAkBD,SAAgB,eAAe,CAAC,EAAW;IACzC,OAAO,SAAS,CAAC,EAAE,CAAC,IAAI,IAAA,oBAAQ,EAAC,EAAE,CAAC,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"guards.js","sourceRoot":"","sources":["../../src/float32/guards.ts"],"names":[],"mappings":";;AA0CA,8BAEC;AAoBD,0CAEC;AAlED;;;;;;;;;;;;;;GAcG;AACH,6CAAyC;AACzC,mDAA4D;AAE5D,yCAA0C;AAuB1C,kBAAkB;AAClB,SAAgB,SAAS,CAAC,EAAW;IACnC,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,IAAA,cAAK,EAAC,EAAE,CAAC,IAAI,EAAE,KAAK,IAAA,uBAAY,EAAC,EAAE,CAAC,CAAC;AACzE,CAAC;AAmBD,kBAAkB;AAClB,SAAgB,eAAe,CAAC,EAAW;IACzC,OAAO,SAAS,CAAC,EAAE,CAAC,IAAI,IAAA,oBAAQ,EAAC,EAAE,CAAC,CAAC;AACvC,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isInteger = isInteger;
4
4
  exports.isNumberInteger = isNumberInteger;
5
- /** @internal */
6
- // deno-lint-ignore no-explicit-any
5
+ /** @inheritDoc */
7
6
  function isInteger(number) {
8
- return (number = +number) % 1 === 0;
7
+ const value = +number;
8
+ return value % 1 === 0;
9
9
  }
10
10
  /**
11
11
  * Checks if a given number is a whole number (integer), in a way that is
@@ -1 +1 @@
1
- {"version":3,"file":"integer.js","sourceRoot":"","sources":["../../src/guards/integer.ts"],"names":[],"mappings":";;AAiDA,8BAEC;AAYD,0CAIC;AApBD,gBAAgB;AAChB,mCAAmC;AACnC,SAAgB,SAAS,CAAC,MAAW;IACnC,OAAO,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,eAAe,CAC7B,MAAS;IAET,OAAO,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"integer.js","sourceRoot":"","sources":["../../src/guards/integer.ts"],"names":[],"mappings":";;AAgDA,8BAGC;AAYD,0CAIC;AApBD,kBAAkB;AAClB,SAAgB,SAAS,CAAC,MAAe;IACvC,MAAM,KAAK,GAAG,CAAE,MAAiB,CAAC;IAClC,OAAO,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,eAAe,CAC7B,MAAS;IAET,OAAO,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC"}
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * ```ts
7
7
  * import type { Finite } from "@nick/math/types/finite";
8
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
8
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
9
9
  *
10
10
  * const value = 42 as Finite;
11
11
  * expectType<Finite>(value);
@@ -6,7 +6,7 @@
6
6
  * @example
7
7
  * ```ts
8
8
  * import type { Finite } from "@nick/math/types/finite";
9
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
9
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
10
10
  *
11
11
  * const value = 42 as Finite;
12
12
  * expectType<Finite>(value);
@@ -10,7 +10,7 @@
10
10
  * @example
11
11
  * ```ts
12
12
  * import type { Float32 } from "@nick/math/types/float";
13
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
13
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
14
14
  *
15
15
  * const value = 1 as Float32;
16
16
  * expectType<Float32>(value);
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * ```ts
7
7
  * import type { Int32 } from "@nick/math/types/integer";
8
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
8
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
9
9
  *
10
10
  * const value = 42 as Int32;
11
11
  * expectType<Int32>(value);
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * ```ts
7
7
  * import type { P32, Precision } from "@nick/math/types/precision";
8
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
8
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
9
9
  *
10
10
  * expectType<P32>(32);
11
11
  * expectType<Precision>(32);
@@ -6,7 +6,7 @@
6
6
  * @example
7
7
  * ```ts
8
8
  * import type { P32, Precision } from "@nick/math/types/precision";
9
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
9
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
10
10
  *
11
11
  * expectType<P32>(32);
12
12
  * expectType<Precision>(32);
@@ -6,7 +6,7 @@
6
6
  * ```ts
7
7
  * import { isSafeInteger } from "@nick/math/is/safe-integer";
8
8
  * import type { SafeInteger } from "@nick/math/types/safe-integer";
9
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
9
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
10
10
  *
11
11
  * let user_input: number = 42;
12
12
  * if (isSafeInteger(user_input)) {
@@ -7,7 +7,7 @@
7
7
  * ```ts
8
8
  * import { isSafeInteger } from "@nick/math/is/safe-integer";
9
9
  * import type { SafeInteger } from "@nick/math/types/safe-integer";
10
- * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";;
10
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
11
11
  *
12
12
  * let user_input: number = 42;
13
13
  * if (isSafeInteger(user_input)) {
@@ -20,5 +20,19 @@
20
20
  * @tags E
21
21
  */
22
22
  export declare const E: E;
23
+ /**
24
+ * Type-level alias of the `E` constant exported by this module. This allows
25
+ * `E` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { E } from "@nick/math/constants/e";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<E>(2.718281828459045);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type E = 2.718281828459045;
24
38
  //# sourceMappingURL=e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"e.d.ts","sourceRoot":"","sources":["../../src/constants/e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,CAAC,EAAE,CAAqB,CAAC;AAEtC,MAAM,MAAM,CAAC,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"e.d.ts","sourceRoot":"","sources":["../../src/constants/e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,CAAC,EAAE,CAAqB,CAAC;AAEtC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,CAAC,GAAG,iBAAiB,CAAC"}
@@ -27,5 +27,19 @@
27
27
  * @tags Number, Epsilon
28
28
  */
29
29
  export declare const EPSILON: EPSILON;
30
+ /**
31
+ * Type-level alias of the `EPSILON` constant exported by this module. This allows
32
+ * `EPSILON` to be imported using a standard named import (i.e. the _value_ level)
33
+ * or via type-only import for a compile-time only reference to the same value.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * import type { EPSILON } from "@nick/math/constants/epsilon";
38
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
39
+ *
40
+ * expectType<EPSILON>(2.220446049250313e-16);
41
+ * ```
42
+ * @category Constants
43
+ */
30
44
  export type EPSILON = 2.220446049250313e-16;
31
45
  //# sourceMappingURL=epsilon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"epsilon.d.ts","sourceRoot":"","sources":["../../src/constants/epsilon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,OAA+B,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC"}
1
+ {"version":3,"file":"epsilon.d.ts","sourceRoot":"","sources":["../../src/constants/epsilon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,OAA+B,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const LN2: LN2;
23
+ /**
24
+ * Type-level alias of the `LN2` constant exported by this module. This allows
25
+ * `LN2` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { LN2 } from "@nick/math/constants/ln2";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<LN2>(0.6931471805599453);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type LN2 = 0.6931471805599453;
24
38
  //# sourceMappingURL=ln2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ln2.d.ts","sourceRoot":"","sources":["../../src/constants/ln2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,EAAE,GAAwB,CAAC;AAC3C,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ln2.d.ts","sourceRoot":"","sources":["../../src/constants/ln2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,EAAE,GAAwB,CAAC;AAC3C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const LOG10E: LOG10E;
23
+ /**
24
+ * Type-level alias of the `LOG10E` constant exported by this module. This allows
25
+ * `LOG10E` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { LOG10E } from "@nick/math/constants/log10e";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<LOG10E>(0.4342944819032518);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type LOG10E = 0.4342944819032518;
24
38
  //# sourceMappingURL=log10e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log10e.d.ts","sourceRoot":"","sources":["../../src/constants/log10e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,MAA2B,CAAC;AACjD,MAAM,MAAM,MAAM,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"log10e.d.ts","sourceRoot":"","sources":["../../src/constants/log10e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,MAA2B,CAAC;AACjD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,MAAM,GAAG,kBAAkB,CAAC"}
@@ -20,5 +20,19 @@
20
20
  * @category Constants
21
21
  */
22
22
  export declare const LOG2E: LOG2E;
23
+ /**
24
+ * Type-level alias of the `LOG2E` constant exported by this module. This allows
25
+ * `LOG2E` to be imported using a standard named import (i.e. the _value_ level)
26
+ * or via type-only import for a compile-time only reference to the same value.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import type { LOG2E } from "@nick/math/constants/log2e";
31
+ * import { expectType } from "jsr:@nick/is@0.2.0-rc.6/type/expect";
32
+ *
33
+ * expectType<LOG2E>(1.4426950408889634);
34
+ * ```
35
+ * @category Constants
36
+ */
23
37
  export type LOG2E = 1.4426950408889634;
24
38
  //# sourceMappingURL=log2e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log2e.d.ts","sourceRoot":"","sources":["../../src/constants/log2e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,KAA0B,CAAC;AAC/C,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"log2e.d.ts","sourceRoot":"","sources":["../../src/constants/log2e.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,KAA0B,CAAC;AAC/C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC"}