@parischap/conversions 0.1.0 → 0.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/README.md +50 -49
- package/cjs/BigDecimal.js +2 -2
- package/cjs/BigInt.js +7 -5
- package/cjs/BigInt.js.map +1 -1
- package/cjs/DateTime.js +144 -136
- package/cjs/DateTime.js.map +1 -1
- package/cjs/DateTimeFormat.js +7 -2
- package/cjs/DateTimeFormat.js.map +1 -1
- package/cjs/DateTimeFormatContext.js +11 -6
- package/cjs/DateTimeFormatContext.js.map +1 -1
- package/cjs/Email.js +11 -15
- package/cjs/Email.js.map +1 -1
- package/cjs/Integer.js +33 -23
- package/cjs/Integer.js.map +1 -1
- package/cjs/NumberBase10Format.js +65 -65
- package/cjs/PositiveInteger.js +44 -29
- package/cjs/PositiveInteger.js.map +1 -1
- package/cjs/PositiveReal.js +34 -24
- package/cjs/PositiveReal.js.map +1 -1
- package/cjs/Real.js +29 -18
- package/cjs/Real.js.map +1 -1
- package/cjs/RoundingMode.js +7 -4
- package/cjs/RoundingMode.js.map +1 -1
- package/cjs/RoundingOption.js +6 -6
- package/cjs/RoundingOption.js.map +1 -1
- package/cjs/Schema.js +29 -28
- package/cjs/Schema.js.map +1 -1
- package/cjs/SemVer.js +19 -20
- package/cjs/SemVer.js.map +1 -1
- package/cjs/Template.js +36 -31
- package/cjs/Template.js.map +1 -1
- package/cjs/TemplatePart.js +4 -4
- package/cjs/TemplateParts.js +3 -2
- package/cjs/TemplateParts.js.map +1 -1
- package/cjs/TemplatePlaceholder.js +56 -45
- package/cjs/TemplatePlaceholder.js.map +1 -1
- package/cjs/TemplateSeparator.js +17 -24
- package/cjs/TemplateSeparator.js.map +1 -1
- package/cjs/internal/Int.js +5 -8
- package/cjs/internal/Int.js.map +1 -1
- package/cjs/internal/Positive.js +5 -8
- package/cjs/internal/Positive.js.map +1 -1
- package/dts/BigDecimal.d.ts +2 -2
- package/dts/BigDecimal.d.ts.map +1 -1
- package/dts/BigInt.d.ts +7 -5
- package/dts/BigInt.d.ts.map +1 -1
- package/dts/DateTime.d.ts +145 -137
- package/dts/DateTime.d.ts.map +1 -1
- package/dts/DateTimeFormat.d.ts +7 -2
- package/dts/DateTimeFormat.d.ts.map +1 -1
- package/dts/DateTimeFormatContext.d.ts +17 -12
- package/dts/DateTimeFormatContext.d.ts.map +1 -1
- package/dts/Email.d.ts +16 -13
- package/dts/Email.d.ts.map +1 -1
- package/dts/Integer.d.ts +43 -21
- package/dts/Integer.d.ts.map +1 -1
- package/dts/NumberBase10Format.d.ts +68 -68
- package/dts/PositiveInteger.d.ts +54 -27
- package/dts/PositiveInteger.d.ts.map +1 -1
- package/dts/PositiveReal.d.ts +44 -22
- package/dts/PositiveReal.d.ts.map +1 -1
- package/dts/Real.d.ts +39 -16
- package/dts/Real.d.ts.map +1 -1
- package/dts/RoundingMode.d.ts +6 -3
- package/dts/RoundingMode.d.ts.map +1 -1
- package/dts/RoundingOption.d.ts +6 -6
- package/dts/Schema.d.ts +32 -33
- package/dts/Schema.d.ts.map +1 -1
- package/dts/SemVer.d.ts +25 -13
- package/dts/SemVer.d.ts.map +1 -1
- package/dts/Template.d.ts +30 -29
- package/dts/Template.d.ts.map +1 -1
- package/dts/TemplatePart.d.ts +4 -4
- package/dts/TemplateParts.d.ts +4 -3
- package/dts/TemplateParts.d.ts.map +1 -1
- package/dts/TemplatePlaceholder.d.ts +56 -44
- package/dts/TemplatePlaceholder.d.ts.map +1 -1
- package/dts/TemplateSeparator.d.ts +9 -51
- package/dts/TemplateSeparator.d.ts.map +1 -1
- package/dts/internal/Int.d.ts +0 -4
- package/dts/internal/Int.d.ts.map +1 -1
- package/dts/internal/Positive.d.ts +0 -4
- package/dts/internal/Positive.d.ts.map +1 -1
- package/esm/BigDecimal.js +2 -2
- package/esm/BigInt.js +7 -5
- package/esm/BigInt.js.map +1 -1
- package/esm/DateTime.js +144 -136
- package/esm/DateTime.js.map +1 -1
- package/esm/DateTimeFormat.js +7 -2
- package/esm/DateTimeFormat.js.map +1 -1
- package/esm/DateTimeFormatContext.js +11 -6
- package/esm/DateTimeFormatContext.js.map +1 -1
- package/esm/Email.js +10 -13
- package/esm/Email.js.map +1 -1
- package/esm/Integer.js +33 -23
- package/esm/Integer.js.map +1 -1
- package/esm/NumberBase10Format.js +65 -65
- package/esm/PositiveInteger.js +44 -29
- package/esm/PositiveInteger.js.map +1 -1
- package/esm/PositiveReal.js +34 -24
- package/esm/PositiveReal.js.map +1 -1
- package/esm/Real.js +29 -18
- package/esm/Real.js.map +1 -1
- package/esm/RoundingMode.js +6 -3
- package/esm/RoundingMode.js.map +1 -1
- package/esm/RoundingOption.js +6 -6
- package/esm/RoundingOption.js.map +1 -1
- package/esm/Schema.js +33 -34
- package/esm/Schema.js.map +1 -1
- package/esm/SemVer.js +18 -18
- package/esm/SemVer.js.map +1 -1
- package/esm/Template.js +36 -31
- package/esm/Template.js.map +1 -1
- package/esm/TemplatePart.js +4 -4
- package/esm/TemplateParts.js +3 -2
- package/esm/TemplateParts.js.map +1 -1
- package/esm/TemplatePlaceholder.js +55 -44
- package/esm/TemplatePlaceholder.js.map +1 -1
- package/esm/TemplateSeparator.js +16 -24
- package/esm/TemplateSeparator.js.map +1 -1
- package/esm/internal/Int.js +5 -7
- package/esm/internal/Int.js.map +1 -1
- package/esm/internal/Positive.js +5 -7
- package/esm/internal/Positive.js.map +1 -1
- package/package.json +2 -2
package/cjs/PositiveInteger.js
CHANGED
@@ -28,8 +28,11 @@ function _interopRequireWildcard(e, t) {
|
|
28
28
|
})(e, t);
|
29
29
|
}
|
30
30
|
/**
|
31
|
-
* This module implements a
|
32
|
-
* disallowed)
|
31
|
+
* This module implements a CVPositiveInteger brand, i.e. a number that represents an integer
|
32
|
+
* greater than or equal to 0 (Infinity, NaN disallowed). Can be used to represent an age, a
|
33
|
+
* quantity,... See the `Effect` documentation about Branding
|
34
|
+
* (https://effect.website/docs/code-style/branded-types/) if you are not familiar with this
|
35
|
+
* concept.
|
33
36
|
*/
|
34
37
|
|
35
38
|
/**
|
@@ -41,151 +44,163 @@ const moduleTag = exports.moduleTag = '@parischap/conversions/PositiveInteger/';
|
|
41
44
|
/**
|
42
45
|
* Brand constructor. Should not be used directly
|
43
46
|
*
|
44
|
-
* @
|
47
|
+
* @ignore
|
45
48
|
*/
|
46
49
|
const constructor = exports.constructor = /*#__PURE__*/_effect.Brand.all(CVInteger.constructor, CVPositive.constructor);
|
47
50
|
/**
|
48
|
-
* Constructs a
|
51
|
+
* Constructs a `CVPositiveInteger` from a number without any verifications
|
49
52
|
*
|
50
53
|
* @category Constructors
|
51
54
|
*/
|
52
55
|
const unsafeFromNumber = exports.unsafeFromNumber = /*#__PURE__*/_effect.Brand.nominal();
|
53
56
|
/**
|
54
|
-
*
|
57
|
+
* Tries to construct a `CVPositiveInteger` from a number. Returns a `Some` if the conversion can be
|
58
|
+
* performed, a `None` otherwise
|
55
59
|
*
|
56
60
|
* @category Constructors
|
57
61
|
*/
|
58
62
|
const fromNumberOption = exports.fromNumberOption = /*#__PURE__*/constructor.option.bind(constructor);
|
59
63
|
/**
|
60
|
-
*
|
64
|
+
* Tries to construct a `CVPositiveInteger` from a number. Returns a `Right` if the conversion can
|
65
|
+
* be performed, a `Left` otherwise
|
61
66
|
*
|
62
67
|
* @category Constructors
|
63
68
|
*/
|
64
69
|
const fromNumber = exports.fromNumber = /*#__PURE__*/constructor.either.bind(constructor);
|
65
70
|
/**
|
66
|
-
* Constructs a
|
71
|
+
* Constructs a `CVPositiveInteger` from a number if possible. Throws otherwise
|
67
72
|
*
|
68
73
|
* @category Constructors
|
69
74
|
*/
|
70
75
|
const fromNumberOrThrow = exports.fromNumberOrThrow = constructor;
|
71
76
|
/**
|
72
|
-
* Constructs a
|
77
|
+
* Constructs a `CVPositiveInteger` from a `BigDecimal` without any checks
|
73
78
|
*
|
74
79
|
* @category Constructors
|
75
80
|
*/
|
76
81
|
const unsafeFromBigDecimal = exports.unsafeFromBigDecimal = CVInteger.unsafeFromBigDecimal;
|
77
82
|
/**
|
78
|
-
*
|
83
|
+
* Tries to construct a `CVPositiveInteger` from a `BigDecimal`. Returns a `Some` if the conversion
|
84
|
+
* can be performed, a `None` otherwise
|
79
85
|
*
|
80
86
|
* @category Constructors
|
81
87
|
*/
|
82
88
|
const fromBigDecimalOption = exports.fromBigDecimalOption = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromBigDecimalOption, /*#__PURE__*/_effect.Option.flatMap(CVPositive.fromNumberOption));
|
83
89
|
/**
|
84
|
-
*
|
90
|
+
* Tries to construct a `CVPositiveInteger` from a `BigDecimal`. Returns a `Right` if the conversion
|
91
|
+
* can be performed, a `Left` otherwise
|
85
92
|
*
|
86
93
|
* @category Constructors
|
87
94
|
*/
|
88
95
|
const fromBigDecimal = exports.fromBigDecimal = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromBigDecimal, /*#__PURE__*/_effect.Either.flatMap(CVPositive.fromNumber));
|
89
96
|
/**
|
90
|
-
* Constructs a
|
97
|
+
* Constructs a `CVPositiveInteger` from a `BigDecimal` if possible. Throws otherwise
|
91
98
|
*
|
92
99
|
* @category Constructors
|
93
100
|
*/
|
94
101
|
const fromBigDecimalOrThrow = exports.fromBigDecimalOrThrow = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromBigDecimalOrThrow, CVPositive.fromNumberOrThrow);
|
95
102
|
/**
|
96
|
-
* Constructs a
|
103
|
+
* Constructs a `CVPositiveInteger` from a `BigInt` without any checks
|
97
104
|
*
|
98
105
|
* @category Constructors
|
99
106
|
*/
|
100
107
|
const unsafeFromBigInt = exports.unsafeFromBigInt = CVInteger.unsafeFromBigInt;
|
101
108
|
/**
|
102
|
-
*
|
109
|
+
* Tries to construct a `CVPositiveInteger` from a `BigInt`. Returns a `Some` if the conversion can
|
110
|
+
* be performed, a `None` otherwise
|
103
111
|
*
|
104
112
|
* @category Constructors
|
105
113
|
*/
|
106
114
|
const fromBigIntOption = exports.fromBigIntOption = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromBigIntOption, /*#__PURE__*/_effect.Option.flatMap(CVPositive.fromNumberOption));
|
107
115
|
/**
|
108
|
-
*
|
116
|
+
* Tries to construct a `CVPositiveInteger` from a `BigInt`. Returns a `Right` if the conversion can
|
117
|
+
* be performed, a `Left` otherwise
|
109
118
|
*
|
110
119
|
* @category Constructors
|
111
120
|
*/
|
112
121
|
const fromBigInt = exports.fromBigInt = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromBigInt, /*#__PURE__*/_effect.Either.flatMap(CVPositive.fromNumber));
|
113
122
|
/**
|
114
|
-
* Constructs a
|
123
|
+
* Constructs a `CVPositiveInteger` from a `BigInt` if possible. Throws otherwise
|
115
124
|
*
|
116
125
|
* @category Constructors
|
117
126
|
*/
|
118
127
|
const fromBigIntOrThrow = exports.fromBigIntOrThrow = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromBigIntOrThrow, CVPositive.fromNumberOrThrow);
|
119
128
|
/**
|
120
|
-
* Constructs a
|
129
|
+
* Constructs a `CVPositiveInteger` from a `CVReal` without any checks
|
121
130
|
*
|
122
131
|
* @category Constructors
|
123
132
|
*/
|
124
133
|
const unsafeFromReal = exports.unsafeFromReal = _effect.Function.identity;
|
125
134
|
/**
|
126
|
-
*
|
135
|
+
* Tries to construct a `CVPositiveInteger` from a `CVReal`. Returns a `Some` if the conversion can
|
136
|
+
* be performed, a `None` otherwise
|
127
137
|
*
|
128
138
|
* @category Constructors
|
129
139
|
*/
|
130
140
|
const fromRealOption = exports.fromRealOption = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromRealOption, /*#__PURE__*/_effect.Option.flatMap(CVPositive.fromNumberOption));
|
131
141
|
/**
|
132
|
-
*
|
142
|
+
* Tries to construct a `CVPositiveInteger` from a `CVReal`. Returns a `Right` if the conversion can
|
143
|
+
* be performed, a `Left` otherwise
|
133
144
|
*
|
134
145
|
* @category Constructors
|
135
146
|
*/
|
136
147
|
const fromReal = exports.fromReal = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromReal, /*#__PURE__*/_effect.Either.flatMap(CVPositive.fromNumber));
|
137
148
|
/**
|
138
|
-
* Constructs a
|
149
|
+
* Constructs a `CVPositiveInteger` from a `CVReal` if possible. Throws otherwise
|
139
150
|
*
|
140
151
|
* @category Constructors
|
141
152
|
*/
|
142
153
|
const fromRealOrThrow = exports.fromRealOrThrow = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromRealOrThrow, CVPositive.fromNumberOrThrow);
|
143
154
|
/**
|
144
|
-
*
|
155
|
+
* Tries to construct a `CVPositiveInteger` from a `CVInteger`. Returns a `Some` if the conversion
|
156
|
+
* can be performed, a `None` otherwise
|
145
157
|
*
|
146
158
|
* @category Constructors
|
147
159
|
*/
|
148
160
|
const fromIntegerOption = exports.fromIntegerOption = /*#__PURE__*/(0, _effect.flow)(CVPositive.fromNumberOption);
|
149
161
|
/**
|
150
|
-
*
|
162
|
+
* Tries to construct a `CVPositiveInteger` from a `CVInteger`. Returns a `Right` if the conversion
|
163
|
+
* can be performed, a `Left` otherwise
|
151
164
|
*
|
152
165
|
* @category Constructors
|
153
166
|
*/
|
154
167
|
const fromInteger = exports.fromInteger = CVPositive.fromNumber;
|
155
168
|
/**
|
156
|
-
* Constructs a
|
169
|
+
* Constructs a `CVPositiveInteger` from a `CVInteger` if possible. Throws otherwise
|
157
170
|
*
|
158
171
|
* @category Constructors
|
159
172
|
*/
|
160
173
|
const fromIntegerOrThrow = exports.fromIntegerOrThrow = /*#__PURE__*/(0, _effect.flow)(CVPositive.fromNumberOrThrow);
|
161
174
|
/**
|
162
|
-
*
|
175
|
+
* Tries to construct a `CVPositiveInteger` from a `CVPositiveReal`. Returns a `Some` if the
|
176
|
+
* conversion can be performed, a `None` otherwise
|
163
177
|
*
|
164
178
|
* @category Constructors
|
165
179
|
*/
|
166
180
|
const fromPositiveRealOption = exports.fromPositiveRealOption = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromRealOption);
|
167
181
|
/**
|
168
|
-
*
|
182
|
+
* Tries to construct a `CVPositiveInteger` from a `CVPositiveReal`. Returns a `Right` if the
|
183
|
+
* conversion can be performed, a `Left` otherwise
|
169
184
|
*
|
170
185
|
* @category Constructors
|
171
186
|
*/
|
172
187
|
const fromPositiveReal = exports.fromPositiveReal = CVInteger.fromReal;
|
173
188
|
/**
|
174
|
-
* Constructs a
|
189
|
+
* Constructs a `CVPositiveInteger` from a `CVPositiveReal` if possible. Throws otherwise
|
175
190
|
*
|
176
191
|
* @category Constructors
|
177
192
|
*/
|
178
193
|
const fromPositiveRealOrThrow = exports.fromPositiveRealOrThrow = /*#__PURE__*/(0, _effect.flow)(CVInteger.fromRealOrThrow);
|
179
194
|
/**
|
180
|
-
* A Schema that transforms a number into a CVPositiveInteger
|
195
|
+
* A `Schema` that transforms a number into a `CVPositiveInteger`
|
181
196
|
*
|
182
|
-
* @
|
197
|
+
* @ignore
|
183
198
|
*/
|
184
199
|
const SchemaFromNumber = exports.SchemaFromNumber = /*#__PURE__*/_effect.Schema.Number.pipe(/*#__PURE__*/_effect.Schema.fromBrand(constructor));
|
185
200
|
/**
|
186
|
-
* A Schema that represents a CVPositiveInteger
|
201
|
+
* A Schema that represents a `CVPositiveInteger`
|
187
202
|
*
|
188
|
-
* @
|
203
|
+
* @ignore
|
189
204
|
*/
|
190
205
|
const SchemaFromSelf = exports.SchemaFromSelf = /*#__PURE__*/_effect.Schema.typeSchema(SchemaFromNumber);
|
191
206
|
//# sourceMappingURL=PositiveInteger.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PositiveInteger.js","names":["_effect","require","CVInteger","_interopRequireWildcard","CVPositive","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","moduleTag","exports","constructor","Brand","all","unsafeFromNumber","nominal","fromNumberOption","option","bind","fromNumber","either","fromNumberOrThrow","unsafeFromBigDecimal","fromBigDecimalOption","flow","Option","flatMap","fromBigDecimal","Either","fromBigDecimalOrThrow","unsafeFromBigInt","fromBigIntOption","fromBigInt","fromBigIntOrThrow","unsafeFromReal","Function","identity","fromRealOption","fromReal","fromRealOrThrow","fromIntegerOption","fromInteger","fromIntegerOrThrow","fromPositiveRealOption","fromPositiveReal","fromPositiveRealOrThrow","SchemaFromNumber","Schema","Number","pipe","fromBrand","SchemaFromSelf","typeSchema"],"sources":["../../esm/PositiveInteger.ts"],"sourcesContent":[null],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"PositiveInteger.js","names":["_effect","require","CVInteger","_interopRequireWildcard","CVPositive","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","moduleTag","exports","constructor","Brand","all","unsafeFromNumber","nominal","fromNumberOption","option","bind","fromNumber","either","fromNumberOrThrow","unsafeFromBigDecimal","fromBigDecimalOption","flow","Option","flatMap","fromBigDecimal","Either","fromBigDecimalOrThrow","unsafeFromBigInt","fromBigIntOption","fromBigInt","fromBigIntOrThrow","unsafeFromReal","Function","identity","fromRealOption","fromReal","fromRealOrThrow","fromIntegerOption","fromInteger","fromIntegerOrThrow","fromPositiveRealOption","fromPositiveReal","fromPositiveRealOrThrow","SchemaFromNumber","Schema","Number","pipe","fromBrand","SchemaFromSelf","typeSchema"],"sources":["../../esm/PositiveInteger.ts"],"sourcesContent":[null],"mappings":";;;;;;AASA,IAAAA,OAAA,gBAAAC,OAAA;AACA,IAAAC,SAAA,gBAAAC,uBAAA,cAAAF,OAAA;AACA,IAAAG,UAAA,gBAAAD,uBAAA,cAAAF,OAAA;AAAqD,SAAAE,wBAAAE,CAAA,EAAAC,CAAA;EAAA,yBAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA;IAAAE,CAAA,OAAAF,OAAA;EAAA,QAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA;IAAA,KAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAA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AAA,CAAA+B,WAAA,GAGpBpD,UAAU,CAAC8B,UAAmB;AAElC;;;;;AAKO,MAAMuB,kBAAkB,GAAAhC,OAAA,CAAAgC,kBAAA,gBAAgD,IAAAzD,OAAA,CAAAuC,IAAI,EAClFnC,UAAU,CAACgC,iBAAiB,CACnB;AAEV;;;;;;AAMO,MAAMsB,sBAAsB,GAAAjC,OAAA,CAAAiC,sBAAA,gBAG/B,IAAA1D,OAAA,CAAAuC,IAAI,EAACrC,SAAS,CAACkD,cAAc,CAAU;AAE3C;;;;;;AAMO,MAAMO,gBAAgB,GAAAlC,OAAA,CAAAkC,gBAAA,GAGzBzD,SAAS,CAACmD,QAAiB;AAE/B;;;;;AAKO,MAAMO,uBAAuB,GAAAnC,OAAA,CAAAmC,uBAAA,gBAAqD,IAAA5D,OAAA,CAAAuC,IAAI,EAC5FrC,SAAS,CAACoD,eAAe,CAChB;AAEV;;;;;AAKO,MAAMO,gBAAgB,GAAApC,OAAA,CAAAoC,gBAAA,gBAAgC7D,OAAA,CAAA8D,MAAM,CAACC,MAAM,CAACC,IAAI,cAC9EhE,OAAA,CAAA8D,MAAM,CAACG,SAAS,CAACvC,WAAW,CAAC,CAC7B;AAED;;;;;AAKO,MAAMwC,cAAc,GAAAzC,OAAA,CAAAyC,cAAA,gBAAwBlE,OAAA,CAAA8D,MAAM,CAACK,UAAU,CAACN,gBAAgB,CAAC","ignoreList":[]}
|
package/cjs/PositiveReal.js
CHANGED
@@ -29,8 +29,10 @@ function _interopRequireWildcard(e, t) {
|
|
29
29
|
})(e, t);
|
30
30
|
}
|
31
31
|
/**
|
32
|
-
* This module implements a
|
33
|
-
* disallowed).
|
32
|
+
* This module implements a CVPositiveReal brand, i.e. a number greater than or equal to 0
|
33
|
+
* (Infinity, NaN disallowed). Can be used to represent a price, a speed,... See the `Effect`
|
34
|
+
* documentation about Branding (https://effect.website/docs/code-style/branded-types/) if you are
|
35
|
+
* not familiar with this concept.
|
34
36
|
*/
|
35
37
|
|
36
38
|
/**
|
@@ -42,121 +44,129 @@ const moduleTag = exports.moduleTag = '@parischap/conversions/PositiveReal/';
|
|
42
44
|
/**
|
43
45
|
* Brand constructor. Should not be used directly
|
44
46
|
*
|
45
|
-
* @
|
47
|
+
* @ignore
|
46
48
|
*/
|
47
49
|
const constructor = exports.constructor = /*#__PURE__*/_effect.Brand.all(CVReal.constructor, CVPositive.constructor);
|
48
50
|
/**
|
49
|
-
* Constructs a
|
51
|
+
* Constructs a `CVPositiveReal` from a number without any verifications
|
50
52
|
*
|
51
53
|
* @category Constructors
|
52
54
|
*/
|
53
55
|
const unsafeFromNumber = exports.unsafeFromNumber = /*#__PURE__*/_effect.Brand.nominal();
|
54
56
|
/**
|
55
|
-
*
|
57
|
+
* Tries to construct a `CVPositiveReal` from a number. Returns a `Some` if the conversion can be
|
58
|
+
* performed, a `None` otherwise
|
56
59
|
*
|
57
60
|
* @category Constructors
|
58
61
|
*/
|
59
62
|
const fromNumberOption = exports.fromNumberOption = /*#__PURE__*/constructor.option.bind(constructor);
|
60
63
|
/**
|
61
|
-
*
|
64
|
+
* Tries to construct a `CVPositiveReal` from a number. Returns a `Right` if the conversion can be
|
65
|
+
* performed, a `Left` otherwise
|
62
66
|
*
|
63
67
|
* @category Constructors
|
64
68
|
*/
|
65
69
|
const fromNumber = exports.fromNumber = /*#__PURE__*/constructor.either.bind(constructor);
|
66
70
|
/**
|
67
|
-
* Constructs a
|
71
|
+
* Constructs a `CVPositiveReal` from a number if possible. Throws otherwise
|
68
72
|
*
|
69
73
|
* @category Constructors
|
70
74
|
*/
|
71
75
|
const fromNumberOrThrow = exports.fromNumberOrThrow = constructor;
|
72
76
|
/**
|
73
|
-
* Constructs a
|
77
|
+
* Constructs a `CVPositiveReal` from a `BigDecimal` without any checks
|
74
78
|
*
|
75
79
|
* @category Constructors
|
76
80
|
*/
|
77
81
|
const unsafeFromBigDecimal = exports.unsafeFromBigDecimal = _effectLib.MNumber.unsafeFromBigDecimal;
|
78
82
|
/**
|
79
|
-
*
|
83
|
+
* Tries to construct a `CVPositiveReal` from a `BigDecimal`. Returns a `Some` if the conversion can
|
84
|
+
* be performed, a `None` otherwise
|
80
85
|
*
|
81
86
|
* @category Constructors
|
82
87
|
*/
|
83
88
|
const fromBigDecimalOption = exports.fromBigDecimalOption = /*#__PURE__*/(0, _effect.flow)(CVReal.fromBigDecimalOption, /*#__PURE__*/_effect.Option.flatMap(CVPositive.fromNumberOption));
|
84
89
|
/**
|
85
|
-
*
|
90
|
+
* Tries to construct a `CVPositiveReal` from a `BigDecimal`. Returns a `Right` if the conversion
|
91
|
+
* can be performed, a `Left` otherwise
|
86
92
|
*
|
87
93
|
* @category Constructors
|
88
94
|
*/
|
89
95
|
const fromBigDecimal = exports.fromBigDecimal = /*#__PURE__*/(0, _effect.flow)(CVReal.fromBigDecimal, /*#__PURE__*/_effect.Either.flatMap(CVPositive.fromNumber));
|
90
96
|
/**
|
91
|
-
* Constructs a
|
97
|
+
* Constructs a `CVPositiveReal` from a `BigDecimal` if possible. Throws otherwise
|
92
98
|
*
|
93
99
|
* @category Constructors
|
94
100
|
*/
|
95
101
|
const fromBigDecimalOrThrow = exports.fromBigDecimalOrThrow = /*#__PURE__*/(0, _effect.flow)(CVReal.fromBigDecimalOrThrow, CVPositive.fromNumberOrThrow);
|
96
102
|
/**
|
97
|
-
* Constructs a
|
103
|
+
* Constructs a `CVPositiveReal` from a `BigInt` without any checks
|
98
104
|
*
|
99
105
|
* @category Constructors
|
100
106
|
*/
|
101
107
|
const unsafeFromBigInt = exports.unsafeFromBigInt = _effectLib.MNumber.unsafeFromBigInt;
|
102
108
|
/**
|
103
|
-
*
|
109
|
+
* Tries to construct a `CVPositiveReal` from a `BigInt`. Returns a `Some` if the conversion can be
|
110
|
+
* performed, a `None` otherwise
|
104
111
|
*
|
105
112
|
* @category Constructors
|
106
113
|
*/
|
107
114
|
const fromBigIntOption = exports.fromBigIntOption = /*#__PURE__*/(0, _effect.flow)(CVReal.fromBigIntOption, /*#__PURE__*/_effect.Option.flatMap(CVPositive.fromNumberOption));
|
108
115
|
/**
|
109
|
-
*
|
116
|
+
* Tries to construct a `CVPositiveReal` from a `BigInt`. Returns a `Right` if the conversion can be
|
117
|
+
* performed, a `Left` otherwise
|
110
118
|
*
|
111
119
|
* @category Constructors
|
112
120
|
*/
|
113
121
|
const fromBigInt = exports.fromBigInt = /*#__PURE__*/(0, _effect.flow)(CVReal.fromBigInt, /*#__PURE__*/_effect.Either.flatMap(CVPositive.fromNumber));
|
114
122
|
/**
|
115
|
-
* Constructs a
|
123
|
+
* Constructs a `CVPositiveReal` from a `BigInt` if possible. Throws otherwise
|
116
124
|
*
|
117
125
|
* @category Constructors
|
118
126
|
*/
|
119
127
|
const fromBigIntOrThrow = exports.fromBigIntOrThrow = /*#__PURE__*/(0, _effect.flow)(CVReal.fromBigIntOrThrow, CVPositive.fromNumberOrThrow);
|
120
128
|
/**
|
121
|
-
* Constructs a
|
129
|
+
* Constructs a `CVPositiveReal` from a `CVReal` without any checks
|
122
130
|
*
|
123
131
|
* @category Constructors
|
124
132
|
*/
|
125
133
|
const unsafeFromReal = exports.unsafeFromReal = _effect.Function.identity;
|
126
134
|
/**
|
127
|
-
*
|
135
|
+
* Tries to construct a `CVPositiveReal` from a `CVReal`. Returns a `Some` if the conversion can be
|
136
|
+
* performed, a `None` otherwise
|
128
137
|
*
|
129
138
|
* @category Constructors
|
130
139
|
*/
|
131
140
|
const fromRealOption = exports.fromRealOption = CVPositive.fromNumberOption;
|
132
141
|
/**
|
133
|
-
*
|
142
|
+
* Tries to construct a `CVPositiveReal` from a `CVReal`. Returns a `Right` if the conversion can be
|
143
|
+
* performed, a `Left` otherwise
|
134
144
|
*
|
135
145
|
* @category Constructors
|
136
146
|
*/
|
137
147
|
const fromReal = exports.fromReal = CVPositive.fromNumber;
|
138
148
|
/**
|
139
|
-
* Constructs a
|
149
|
+
* Constructs a `CVPositiveReal` from a `CVReal` if possible. Throws otherwise
|
140
150
|
*
|
141
151
|
* @category Constructors
|
142
152
|
*/
|
143
153
|
const fromRealOrThrow = exports.fromRealOrThrow = CVPositive.fromNumberOrThrow;
|
144
154
|
/**
|
145
|
-
* Constructs a
|
155
|
+
* Constructs a `CVPositiveReal` from a `CVPositiveInteger`
|
146
156
|
*
|
147
157
|
* @category Constructors
|
148
158
|
*/
|
149
159
|
const fromPositiveInteger = exports.fromPositiveInteger = _effect.Function.identity;
|
150
160
|
/**
|
151
|
-
* A Schema that transforms a number into a CVPositiveReal
|
161
|
+
* A `Schema` that transforms a number into a `CVPositiveReal`
|
152
162
|
*
|
153
|
-
* @
|
163
|
+
* @ignore
|
154
164
|
*/
|
155
165
|
const SchemaFromNumber = exports.SchemaFromNumber = /*#__PURE__*/_effect.Schema.Number.pipe(/*#__PURE__*/_effect.Schema.fromBrand(constructor));
|
156
166
|
/**
|
157
|
-
* A Schema that represents a CVPositiveReal
|
167
|
+
* A `Schema` that represents a `CVPositiveReal`
|
158
168
|
*
|
159
|
-
* @
|
169
|
+
* @ignore
|
160
170
|
*/
|
161
171
|
const SchemaFromSelf = exports.SchemaFromSelf = /*#__PURE__*/_effect.Schema.typeSchema(SchemaFromNumber);
|
162
172
|
//# sourceMappingURL=PositiveReal.js.map
|
package/cjs/PositiveReal.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PositiveReal.js","names":["_effectLib","require","_effect","CVPositive","_interopRequireWildcard","CVReal","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","moduleTag","exports","constructor","Brand","all","unsafeFromNumber","nominal","fromNumberOption","option","bind","fromNumber","either","fromNumberOrThrow","unsafeFromBigDecimal","MNumber","fromBigDecimalOption","flow","Option","flatMap","fromBigDecimal","Either","fromBigDecimalOrThrow","unsafeFromBigInt","fromBigIntOption","fromBigInt","fromBigIntOrThrow","unsafeFromReal","Function","identity","fromRealOption","fromReal","fromRealOrThrow","fromPositiveInteger","SchemaFromNumber","Schema","Number","pipe","fromBrand","SchemaFromSelf","typeSchema"],"sources":["../../esm/PositiveReal.ts"],"sourcesContent":[null],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"PositiveReal.js","names":["_effectLib","require","_effect","CVPositive","_interopRequireWildcard","CVReal","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","moduleTag","exports","constructor","Brand","all","unsafeFromNumber","nominal","fromNumberOption","option","bind","fromNumber","either","fromNumberOrThrow","unsafeFromBigDecimal","MNumber","fromBigDecimalOption","flow","Option","flatMap","fromBigDecimal","Either","fromBigDecimalOrThrow","unsafeFromBigInt","fromBigIntOption","fromBigInt","fromBigIntOrThrow","unsafeFromReal","Function","identity","fromRealOption","fromReal","fromRealOrThrow","fromPositiveInteger","SchemaFromNumber","Schema","Number","pipe","fromBrand","SchemaFromSelf","typeSchema"],"sources":["../../esm/PositiveReal.ts"],"sourcesContent":[null],"mappings":";;;;;;AAOA,IAAAA,UAAA,gBAAAC,OAAA;AACA,IAAAC,OAAA,gBAAAD,OAAA;AACA,IAAAE,UAAA,gBAAAC,uBAAA,cAAAH,OAAA;AAEA,IAAAI,MAAA,gBAAAD,uBAAA,cAAAH,OAAA;AAAoC,SAAAG,wBAAAE,CAAA,EAAAC,CAAA;EAAA,yBAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA;IAAAE,CAAA,OAAAF,OAAA;EAAA,QAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA;IAAA,KAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA;IAAA,IAAAM,CAAA;MAAAC,CAAA;MAAAC,CAAA;QAAAC,SAAA;QAAAC,OAAA,EAAAV;MAAA;IAAA,aAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA;IAAA,IAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,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3E;;;;;AAKO,MAAMe,iBAAiB,GAAAxB,OAAA,CAAAwB,iBAAA,gBAAwC,IAAAhD,OAAA,CAAAuC,IAAI,EACzEpC,MAAM,CAAC6C,iBAAiB,EACxB/C,UAAU,CAACkC,iBAAiB,CACnB;AAEV;;;;;AAKO,MAAMc,cAAc,GAAAzB,OAAA,CAAAyB,cAAA,GAA6CjD,OAAA,CAAAkD,QAAQ,CAACC,QAAiB;AAElG;;;;;;AAMO,MAAMC,cAAc,GAAA5B,OAAA,CAAA4B,cAAA,GAGvBnD,UAAU,CAAC6B,gBAAyB;AAExC;;;;;;AAMO,MAAMuB,QAAQ,GAAA7B,OAAA,CAAA6B,QAAA,GAGjBpD,UAAU,CAACgC,UAAmB;AAElC;;;;;AAKO,MAAMqB,eAAe,GAAA9B,OAAA,CAAA8B,eAAA,GAC3BrD,UAAU,CAACkC,iBAA0B;AAEtC;;;;;AAKO,MAAMoB,mBAAmB,GAAA/B,OAAA,CAAA+B,mBAAA,GAC/BvD,OAAA,CAAAkD,QAAQ,CAACC,QAAiB;AAE3B;;;;;AAKO,MAAMK,gBAAgB,GAAAhC,OAAA,CAAAgC,gBAAA,gBAAgCxD,OAAA,CAAAyD,MAAM,CAACC,MAAM,CAACC,IAAI,cAC9E3D,OAAA,CAAAyD,MAAM,CAACG,SAAS,CAACnC,WAAW,CAAC,CAC7B;AAED;;;;;AAKO,MAAMoC,cAAc,GAAArC,OAAA,CAAAqC,cAAA,gBAAwB7D,OAAA,CAAAyD,MAAM,CAACK,UAAU,CAACN,gBAAgB,CAAC","ignoreList":[]}
|
package/cjs/Real.js
CHANGED
@@ -6,7 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.unsafeFromNumber = exports.unsafeFromBigInt = exports.unsafeFromBigDecimal = exports.moduleTag = exports.fromNumberOrThrow = exports.fromNumberOption = exports.fromNumber = exports.fromBigIntOrThrow = exports.fromBigIntOption = exports.fromBigInt = exports.fromBigDecimalOrThrow = exports.fromBigDecimalOption = exports.fromBigDecimal = exports.constructor = exports.TypeId = exports.SchemaFromSelf = exports.SchemaFromNumber = void 0;
|
7
7
|
var _effectLib = /*#__PURE__*/require("@parischap/effect-lib");
|
8
8
|
var _effect = /*#__PURE__*/require("effect");
|
9
|
-
/**
|
9
|
+
/**
|
10
|
+
* This module implements a CVReal brand, i.e. a number that disallows Infinity and NaN. Can be used
|
11
|
+
* to represent a temperature, a height from sea-level,... See the `Effect` documentation about
|
12
|
+
* Branding (https://effect.website/docs/code-style/branded-types/) if you are not familiar with
|
13
|
+
* this concept.
|
14
|
+
*/
|
10
15
|
|
11
16
|
/**
|
12
17
|
* Module tag
|
@@ -23,91 +28,97 @@ const TypeId = exports.TypeId = /*#__PURE__*/Symbol.for(moduleTag);
|
|
23
28
|
/**
|
24
29
|
* Brand constructor. Should not be used directly
|
25
30
|
*
|
26
|
-
* @
|
31
|
+
* @ignore
|
27
32
|
*/
|
28
33
|
const constructor = exports.constructor = /*#__PURE__*/_effect.Brand.refined(_effectLib.MNumber.isFinite, /*#__PURE__*/(0, _effect.flow)(/*#__PURE__*/_effectLib.MString.fromNumber(10), /*#__PURE__*/_effectLib.MString.prepend("'"), /*#__PURE__*/_effectLib.MString.append("' does not represent a finite number"), _effect.Brand.error));
|
29
34
|
/**
|
30
|
-
* Constructs a
|
35
|
+
* Constructs a `CVReal` from a number without any verifications
|
31
36
|
*
|
32
37
|
* @category Constructors
|
33
38
|
*/
|
34
39
|
const unsafeFromNumber = exports.unsafeFromNumber = /*#__PURE__*/_effect.Brand.nominal();
|
35
40
|
/**
|
36
|
-
*
|
41
|
+
* Tries to construct a `CVReal` from a number. Returns a `Some` if the conversion can be performed,
|
42
|
+
* a `None` otherwise
|
37
43
|
*
|
38
44
|
* @category Constructors
|
39
45
|
*/
|
40
46
|
const fromNumberOption = exports.fromNumberOption = /*#__PURE__*/constructor.option.bind(constructor);
|
41
47
|
/**
|
42
|
-
*
|
48
|
+
* Tries to construct a `CVReal` from a number. Returns a `Right` if the conversion can be
|
49
|
+
* performed, a `Left` otherwise
|
43
50
|
*
|
44
51
|
* @category Constructors
|
45
52
|
*/
|
46
53
|
const fromNumber = exports.fromNumber = /*#__PURE__*/constructor.either.bind(constructor);
|
47
54
|
/**
|
48
|
-
* Constructs a
|
55
|
+
* Constructs a `CVReal` from a number if possible. Throws otherwise
|
49
56
|
*
|
50
57
|
* @category Constructors
|
51
58
|
*/
|
52
59
|
const fromNumberOrThrow = exports.fromNumberOrThrow = constructor;
|
53
60
|
/**
|
54
|
-
* Constructs a
|
61
|
+
* Constructs a `CVReal` from a `BigDecimal` without any checks
|
55
62
|
*
|
56
63
|
* @category Constructors
|
57
64
|
*/
|
58
65
|
const unsafeFromBigDecimal = exports.unsafeFromBigDecimal = _effectLib.MNumber.unsafeFromBigDecimal;
|
59
66
|
/**
|
60
|
-
*
|
67
|
+
* Tries to construct a `CVReal` from a `BigDecimal`. Returns a `Some` if the conversion can be
|
68
|
+
* performed, a `None` otherwise
|
61
69
|
*
|
62
70
|
* @category Constructors
|
63
71
|
*/
|
64
72
|
const fromBigDecimalOption = exports.fromBigDecimalOption = _effectLib.MNumber.fromBigDecimalOption;
|
65
73
|
/**
|
66
|
-
*
|
74
|
+
* Tries to construct a `CVReal` from a `BigDecimal`. Returns a `Right` if the conversion can be
|
75
|
+
* performed, a `Left` otherwise
|
67
76
|
*
|
68
77
|
* @category Constructors
|
69
78
|
*/
|
70
79
|
const fromBigDecimal = exports.fromBigDecimal = _effectLib.MNumber.fromBigDecimal;
|
71
80
|
/**
|
72
|
-
* Constructs a
|
81
|
+
* Constructs a `CVReal` from a `BigDecimal` if possible. Throws otherwise
|
73
82
|
*
|
74
83
|
* @category Constructors
|
75
84
|
*/
|
76
85
|
const fromBigDecimalOrThrow = exports.fromBigDecimalOrThrow = _effectLib.MNumber.fromBigDecimalOrThrow;
|
77
86
|
/**
|
78
|
-
* Constructs a
|
87
|
+
* Constructs a `CVReal` from a `BigInt` without any checks
|
79
88
|
*
|
80
89
|
* @category Constructors
|
81
90
|
*/
|
82
91
|
const unsafeFromBigInt = exports.unsafeFromBigInt = _effectLib.MNumber.unsafeFromBigInt;
|
83
92
|
/**
|
84
|
-
*
|
93
|
+
* Tries to construct a `CVReal` from a `BigInt`. Returns a `Some` if the conversion can be
|
94
|
+
* performed, a `None` otherwise
|
85
95
|
*
|
86
96
|
* @category Constructors
|
87
97
|
*/
|
88
98
|
const fromBigIntOption = exports.fromBigIntOption = _effectLib.MNumber.fromBigIntOption;
|
89
99
|
/**
|
90
|
-
*
|
100
|
+
* Tries to construct a `CVReal` from a `BigInt`. Returns a `Right` if the conversion can be
|
101
|
+
* performed, a `Left` otherwise
|
91
102
|
*
|
92
103
|
* @category Constructors
|
93
104
|
*/
|
94
105
|
const fromBigInt = exports.fromBigInt = _effectLib.MNumber.fromBigInt;
|
95
106
|
/**
|
96
|
-
* Constructs a
|
107
|
+
* Constructs a `CVReal` from a `BigInt` if possible. Throws otherwise
|
97
108
|
*
|
98
109
|
* @category Constructors
|
99
110
|
*/
|
100
111
|
const fromBigIntOrThrow = exports.fromBigIntOrThrow = _effectLib.MNumber.fromBigIntOrThrow;
|
101
112
|
/**
|
102
|
-
* A Schema that transforms a number into
|
113
|
+
* A `Schema` that transforms a number into a `CVReal`
|
103
114
|
*
|
104
|
-
* @
|
115
|
+
* @ignore
|
105
116
|
*/
|
106
117
|
const SchemaFromNumber = exports.SchemaFromNumber = /*#__PURE__*/_effect.Schema.Number.pipe(/*#__PURE__*/_effect.Schema.fromBrand(constructor));
|
107
118
|
/**
|
108
|
-
* A Schema that represents a CVReal
|
119
|
+
* A `Schema` that represents a `CVReal`
|
109
120
|
*
|
110
|
-
* @
|
121
|
+
* @ignore
|
111
122
|
*/
|
112
123
|
const SchemaFromSelf = exports.SchemaFromSelf = /*#__PURE__*/_effect.Schema.typeSchema(SchemaFromNumber);
|
113
124
|
//# sourceMappingURL=Real.js.map
|
package/cjs/Real.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Real.js","names":["_effectLib","require","_effect","moduleTag","exports","TypeId","Symbol","for","constructor","Brand","refined","MNumber","isFinite","flow","MString","fromNumber","prepend","append","error","unsafeFromNumber","nominal","fromNumberOption","option","bind","either","fromNumberOrThrow","unsafeFromBigDecimal","fromBigDecimalOption","fromBigDecimal","fromBigDecimalOrThrow","unsafeFromBigInt","fromBigIntOption","fromBigInt","fromBigIntOrThrow","SchemaFromNumber","Schema","Number","pipe","fromBrand","SchemaFromSelf","typeSchema"],"sources":["../../esm/Real.ts"],"sourcesContent":[null],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"Real.js","names":["_effectLib","require","_effect","moduleTag","exports","TypeId","Symbol","for","constructor","Brand","refined","MNumber","isFinite","flow","MString","fromNumber","prepend","append","error","unsafeFromNumber","nominal","fromNumberOption","option","bind","either","fromNumberOrThrow","unsafeFromBigDecimal","fromBigDecimalOption","fromBigDecimal","fromBigDecimalOrThrow","unsafeFromBigInt","fromBigIntOption","fromBigInt","fromBigIntOrThrow","SchemaFromNumber","Schema","Number","pipe","fromBrand","SchemaFromSelf","typeSchema"],"sources":["../../esm/Real.ts"],"sourcesContent":[null],"mappings":";;;;;;AAOA,IAAAA,UAAA,gBAAAC,OAAA;AACA,IAAAC,OAAA,gBAAAD,OAAA;AARA;;;;;;;AAUA;;;;;AAKO,MAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,8BAA8B;AAEvD;;;;;AAKO,MAAME,MAAM,GAAAD,OAAA,CAAAC,MAAA,gBAAkBC,MAAM,CAACC,GAAG,CAACJ,SAAS,CAAY;AAUrE;;;;;AAKO,MAAMK,WAAW,GAAAJ,OAAA,CAAAI,WAAA,gBAAGN,OAAA,CAAAO,KAAK,CAACC,OAAO,CACvCV,UAAA,CAAAW,OAAO,CAACC,QAAQ,eAChB,IAAAV,OAAA,CAAAW,IAAI,eACHb,UAAA,CAAAc,OAAO,CAACC,UAAU,CAAC,EAAE,CAAC,eACtBf,UAAA,CAA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O,MAAMC,UAAU,GAAA5B,OAAA,CAAA4B,UAAA,GAGnBhC,UAAA,CAAAW,OAAO,CAACqB,UAAmB;AAE/B;;;;;AAKO,MAAMC,iBAAiB,GAAA7B,OAAA,CAAA6B,iBAAA,GAC7BjC,UAAA,CAAAW,OAAO,CAACsB,iBAA0B;AAEnC;;;;;AAKO,MAAMC,gBAAgB,GAAA9B,OAAA,CAAA8B,gBAAA,gBAAgChC,OAAA,CAAAiC,MAAM,CAACC,MAAM,CAACC,IAAI,cAC9EnC,OAAA,CAAAiC,MAAM,CAACG,SAAS,CAAC9B,WAAW,CAAC,CAC7B;AAED;;;;;AAKO,MAAM+B,cAAc,GAAAnC,OAAA,CAAAmC,cAAA,gBAAwBrC,OAAA,CAAAiC,MAAM,CAACK,UAAU,CAACN,gBAAgB,CAAC","ignoreList":[]}
|
package/cjs/RoundingMode.js
CHANGED
@@ -3,13 +3,16 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.toCorrecter = exports.getName = exports.Type = void 0;
|
7
7
|
var _effectLib = /*#__PURE__*/require("@parischap/effect-lib");
|
8
8
|
var _effect = /*#__PURE__*/require("effect");
|
9
|
-
/**
|
9
|
+
/**
|
10
|
+
* This module defines the list of available rounding modes (see Intl.NumberFormat) that can be used
|
11
|
+
* by a `CVRoundingOption` (see RoundingOption.ts)
|
12
|
+
*/
|
10
13
|
|
11
14
|
/**
|
12
|
-
*
|
15
|
+
* Type that represents the possible rounding modes
|
13
16
|
*
|
14
17
|
* @category Models
|
15
18
|
*/
|
@@ -61,7 +64,7 @@ var Type;
|
|
61
64
|
*
|
62
65
|
* @category Destructors
|
63
66
|
*/
|
64
|
-
const
|
67
|
+
const getName = exports.getName = /*#__PURE__*/(0, _effect.flow)(_effectLib.MMatch.make, /*#__PURE__*/(0, _effect.flow)(/*#__PURE__*/_effectLib.MMatch.whenIs(Type.Ceil, /*#__PURE__*/_effect.Function.constant('Ceil')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.Floor, /*#__PURE__*/_effect.Function.constant('Floor')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.Expand, /*#__PURE__*/_effect.Function.constant('Expand')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.Trunc, /*#__PURE__*/_effect.Function.constant('Trunc')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.HalfCeil, /*#__PURE__*/_effect.Function.constant('HalfCeil')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.HalfFloor, /*#__PURE__*/_effect.Function.constant('HalfFloor')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.HalfExpand, /*#__PURE__*/_effect.Function.constant('HalfExpand')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.HalfTrunc, /*#__PURE__*/_effect.Function.constant('HalfTrunc')), /*#__PURE__*/_effectLib.MMatch.whenIs(Type.HalfEven, /*#__PURE__*/_effect.Function.constant('HalfEven'))), _effectLib.MMatch.exhaustive);
|
65
68
|
/**
|
66
69
|
* Builds a `Correcter` implementing `self`
|
67
70
|
*
|
package/cjs/RoundingMode.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RoundingMode.js","names":["_effectLib","require","_effect","Type","exports","
|
1
|
+
{"version":3,"file":"RoundingMode.js","names":["_effectLib","require","_effect","Type","exports","getName","flow","MMatch","make","whenIs","Ceil","Function","constant","Floor","Expand","Trunc","HalfCeil","HalfFloor","HalfExpand","HalfTrunc","HalfEven","exhaustive","toCorrecter","firstFollowingDigit","Struct","get","Math","sign","isEven"],"sources":["../../esm/RoundingMode.ts"],"sourcesContent":[null],"mappings":";;;;;;AAKA,IAAAA,UAAA,gBAAAC,OAAA;AACA,IAAAC,OAAA,gBAAAD,OAAA;AANA;;;;;AAQA;;;;;AAKA,IAAYE,IAyCX;AAzCD,WAAYA,IAAI;EACf;EACAA,IAAA,CAAAA,IAAA,sBAAQ;EACR;EACAA,IAAA,CA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