ts-data-forge 8.0.0 → 9.0.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/dist/array/impl/array-utils-transformation.d.mts.map +1 -1
- package/dist/array/impl/array-utils-transformation.mjs.map +1 -1
- package/dist/entry-point.mjs +1 -0
- package/dist/entry-point.mjs.map +1 -1
- package/dist/expect-type.d.mts.map +1 -1
- package/dist/expect-type.mjs.map +1 -1
- package/dist/functional/ternary-result/ternary-result.d.mts.map +1 -1
- package/dist/guard/index.d.mts +1 -0
- package/dist/guard/index.d.mts.map +1 -1
- package/dist/guard/index.mjs +1 -0
- package/dist/guard/index.mjs.map +1 -1
- package/dist/guard/is-length-bounded-string.d.mts +164 -0
- package/dist/guard/is-length-bounded-string.d.mts.map +1 -0
- package/dist/guard/is-length-bounded-string.mjs +164 -0
- package/dist/guard/is-length-bounded-string.mjs.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/number/branded-types/int.d.mts +1 -1
- package/dist/number/branded-types/int16.d.mts +1 -1
- package/dist/number/branded-types/int32.d.mts +1 -1
- package/dist/number/branded-types/non-negative-int16.d.mts +1 -1
- package/dist/number/branded-types/non-negative-int32.d.mts +1 -1
- package/dist/number/branded-types/positive-int.d.mts +1 -1
- package/dist/number/branded-types/positive-int16.d.mts +1 -1
- package/dist/number/branded-types/positive-int32.d.mts +1 -1
- package/dist/number/branded-types/positive-safe-int.d.mts +1 -1
- package/dist/number/branded-types/positive-uint16.d.mts +1 -1
- package/dist/number/branded-types/positive-uint32.d.mts +1 -1
- package/dist/number/branded-types/safe-int.d.mts +1 -1
- package/dist/number/branded-types/safe-uint.d.mts +1 -1
- package/dist/number/branded-types/uint.d.mts +1 -1
- package/dist/number/branded-types/uint16.d.mts +1 -1
- package/dist/number/branded-types/uint32.d.mts +1 -1
- package/dist/number/refined-number-utils.d.mts.map +1 -1
- package/dist/number/refined-number-utils.mjs.map +1 -1
- package/dist/object/object.d.mts.map +1 -1
- package/dist/object/object.mjs.map +1 -1
- package/package.json +10 -10
- package/src/array/impl/array-utils-transformation.mts +1 -2
- package/src/array/impl/array-utils-transformation.test.mts +3 -36
- package/src/array/impl/array-utils-validation.test.mts +1 -3
- package/src/expect-type.mts +4 -5
- package/src/functional/ternary-result/ternary-result.mts +2 -6
- package/src/guard/index.mts +1 -0
- package/src/guard/is-length-bounded-string.mts +199 -0
- package/src/guard/is-length-bounded-string.test.mts +170 -0
- package/src/number/refined-number-utils.mts +1 -9
- package/src/object/object.mts +25 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-utils-transformation.d.mts","sourceRoot":"","sources":["../../../src/array/impl/array-utils-transformation.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,IAAI,EAET,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAInD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,QAAQ,EACd,MAAM,iBAAiB,CAAC;AAKzB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,GAAG,CAAC,KAAK,CAAC,EAAE,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EACxD,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,GACjD,QAAQ,CAAC;KAAG,CAAC,IAAI,MAAM,EAAE,GAAG,CAAC;CAAE,CAAC,CAAC;AAGpC,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EACtB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,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AAS,CAAC,EAAE,CAAC,EAAE,CAAC;AAEhE,wBAAgB,SAAS,CAAC,CAAC,SAAS,YAAY,CAAC,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,EAC1E,SAAS,EAAE,CAAC,GACX,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"array-utils-transformation.d.mts","sourceRoot":"","sources":["../../../src/array/impl/array-utils-transformation.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,IAAI,EAET,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAInD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,QAAQ,EACd,MAAM,iBAAiB,CAAC;AAKzB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,GAAG,CAAC,KAAK,CAAC,EAAE,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EACxD,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,GACjD,QAAQ,CAAC;KAAG,CAAC,IAAI,MAAM,EAAE,GAAG,CAAC;CAAE,CAAC,CAAC;AAGpC,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EACtB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,GACtC,CAAC,KAAK,CAAC,EAAE,SAAS,SAAS,CAAC,EAAE,EAC/B,KAAK,EAAE,EAAE,KACN,Q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AG,EAAE,GAAG,CAMgB,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,KAAK,kBAAY,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAChC,QAAQ,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,KAChC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EAWzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-utils-transformation.mjs","sources":["../../../src/array/impl/array-utils-transformation.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDM,SAAU,GAAG,CACjB,GAAG,IAEmD,EAAA;AAEtD,IAAA,QAAQ,IAAI,CAAC,MAAM;QACjB,KAAK,CAAC,EAAE;AACN,YAAA,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,IAAI;;AAG3B,YAAA,OAAO,KAAK,CAAC,GAAG,CAAC,KAAc,CAAC;;QAGlC,KAAK,CAAC,EAAE;AACN,YAAA,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI;YAEpB,OAAO,CAAC,KAAmB,KAAK,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC;;;AAGvD;AA6CM,SAAU,IAAI,CAClB,GAAG,IAiBE,EAAA;AAEL,IAAA,QAAQ,IAAI,CAAC,MAAM;QACjB,KAAK,CAAC,EAAE;YACN,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,IAAI;AAEnC,YAAA,MAAM,UAAU,GAA4B,WAAW,CACrD,QAAQ,CAAoB,gBAAgB,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CACtE;YAED,IAAI,OAAO,GAAG,IAAI;AAElB,YAAA,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO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,CAIjB,MAAW,EACX,MAAW;AAEX;AACA,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS;AACxD;AACA;AACA,EAAE,CAAC,MAAM,CAAC,CAAC,CAAE,EAAE,MAAM,CAAC,CAAC,CAAE,CAAC;AAG9B;;;;AAIG;AACI,MAAM,KAAK,GAAG;AAErB;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACI,MAAM,gBAAgB,GAAG,CAC9B,MAAiC,KACJ;AAC7B,IAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;QAAE,OAAO,CAAC,EAAE,CAAC;IAEpC,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,MAAM;;AAG/B,IAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,EAAE;AAEjC,IAAA,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAE1C,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AAC5E;;;;"}
|
package/dist/entry-point.mjs
CHANGED
|
@@ -16,6 +16,7 @@ export { createQueue } from './collections/queue.mjs';
|
|
|
16
16
|
export { createStack } from './collections/stack.mjs';
|
|
17
17
|
export { expectType } from './expect-type.mjs';
|
|
18
18
|
export { hasKey } from './guard/has-key.mjs';
|
|
19
|
+
export { isBoundedLengthString, isFixedLengthString, isMaxLengthString, isMinLengthString } from './guard/is-length-bounded-string.mjs';
|
|
19
20
|
export { isNonEmptyString } from './guard/is-non-empty-string.mjs';
|
|
20
21
|
export { isNonNullObject } from './guard/is-non-null-object.mjs';
|
|
21
22
|
export { isPrimitive } from './guard/is-primitive.mjs';
|
package/dist/entry-point.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-point.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entry-point.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expect-type.d.mts","sourceRoot":"","sources":["../src/expect-type.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,EAC7B,WAAW,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAChC,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"expect-type.d.mts","sourceRoot":"","sources":["../src/expect-type.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,EAC7B,WAAW,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAChC,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GACtB,IAAI,GACJ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAC3B,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC,GAC7D,KAAK,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC,KACjE,IAAiB,CAAC"}
|
package/dist/expect-type.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expect-type.mjs","sources":["../src/expect-type.mts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEG;AACI,MAAM,UAAU,GAAG,CACxB,
|
|
1
|
+
{"version":3,"file":"expect-type.mjs","sources":["../src/expect-type.mts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEG;AACI,MAAM,UAAU,GAAG,CACxB,SAKkE,KACzD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ternary-result.d.mts","sourceRoot":"","sources":["../../../src/functional/ternary-result/ternary-result.mts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,QAAQ,CAAC;IAClC,yDAAyD;IACzD,KAAK,EAAE,0BAA0B,CAAC;IAElC,yBAAyB;IACzB,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC;IACvC,2DAA2D;IAC3D,KAAK,EAAE,4BAA4B,CAAC;IAEpC,yBAAyB;IACzB,KAAK,EAAE,CAAC,CAAC;IAET,yBAAyB;IACzB,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,QAAQ,CAAC;IACnC,0DAA0D;IAC1D,KAAK,EAAE,2BAA2B,CAAC;IAEnC,uBAAuB;IACvB,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"ternary-result.d.mts","sourceRoot":"","sources":["../../../src/functional/ternary-result/ternary-result.mts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,QAAQ,CAAC;IAClC,yDAAyD;IACzD,KAAK,EAAE,0BAA0B,CAAC;IAElC,yBAAyB;IACzB,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC;IACvC,2DAA2D;IAC3D,KAAK,EAAE,4BAA4B,CAAC;IAEpC,yBAAyB;IACzB,KAAK,EAAE,CAAC,CAAC;IAET,yBAAyB;IACzB,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,QAAQ,CAAC;IACnC,0DAA0D;IAC1D,KAAK,EAAE,2BAA2B,CAAC;IAEnC,uBAAuB;IACvB,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,IACnC,SAAS,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC9B,SAAS,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;AAE3E,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC"}
|
package/dist/guard/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/guard/index.mts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/guard/index.mts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
package/dist/guard/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { hasKey } from './has-key.mjs';
|
|
2
|
+
export { isBoundedLengthString, isFixedLengthString, isMaxLengthString, isMinLengthString } from './is-length-bounded-string.mjs';
|
|
2
3
|
export { isNonEmptyString } from './is-non-empty-string.mjs';
|
|
3
4
|
export { isNonNullObject } from './is-non-null-object.mjs';
|
|
4
5
|
export { isPrimitive } from './is-primitive.mjs';
|
package/dist/guard/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { type BoundedLengthString, type FixedLengthString, type MaxLengthString, type MinLengthString } from 'ts-type-forge';
|
|
2
|
+
import { type SizeType } from '../types.mjs';
|
|
3
|
+
/**
|
|
4
|
+
* Type guard that checks if a string has at least `minLength` characters.
|
|
5
|
+
*
|
|
6
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
7
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
8
|
+
* Plane (e.g. emoji) count as 2.
|
|
9
|
+
*
|
|
10
|
+
* **Type Narrowing Behavior:**
|
|
11
|
+
*
|
|
12
|
+
* - Narrows the input to `MinLengthString<MinLength>` while preserving the
|
|
13
|
+
* original string type (e.g. literal types) via intersection.
|
|
14
|
+
* - The result participates in the length-constraint subtyping relation: for
|
|
15
|
+
* example, a value narrowed to `MinLengthString<3>` is assignable to
|
|
16
|
+
* `MinLengthString<1>` (= `NonEmptyString`).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* const input: string = 'very-secret-password';
|
|
22
|
+
*
|
|
23
|
+
* assert.isTrue(isMinLengthString(input, 12));
|
|
24
|
+
*
|
|
25
|
+
* assert.isFalse(isMinLengthString('short', 12));
|
|
26
|
+
*
|
|
27
|
+
* if (isMinLengthString(input, 12)) {
|
|
28
|
+
* const password: MinLengthString<12> = input;
|
|
29
|
+
*
|
|
30
|
+
* const nonEmpty: NonEmptyString = input; // OK (12 >= 1)
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @template S - The input string type (literal types are preserved).
|
|
35
|
+
* @template MinLength - The minimum number of characters (inclusive).
|
|
36
|
+
* @param s - The string to check.
|
|
37
|
+
* @param minLength - The minimum number of characters (inclusive).
|
|
38
|
+
* @returns `true` if `s.length >= minLength`, `false` otherwise. When `true`,
|
|
39
|
+
* TypeScript narrows `s` to `MinLengthString<MinLength> & S`.
|
|
40
|
+
*/
|
|
41
|
+
export declare const isMinLengthString: <S extends string, MinLength extends SizeType.ArgStr>(s: S, minLength: MinLength) => s is MinLengthString<MinLength> & S;
|
|
42
|
+
/**
|
|
43
|
+
* Type guard that checks if a string has at most `maxLength` characters.
|
|
44
|
+
*
|
|
45
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
46
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
47
|
+
* Plane (e.g. emoji) count as 2.
|
|
48
|
+
*
|
|
49
|
+
* **Type Narrowing Behavior:**
|
|
50
|
+
*
|
|
51
|
+
* - Narrows the input to `MaxLengthString<MaxLength>` while preserving the
|
|
52
|
+
* original string type (e.g. literal types) via intersection.
|
|
53
|
+
* - The result participates in the length-constraint subtyping relation: for
|
|
54
|
+
* example, a value narrowed to `MaxLengthString<16>` is assignable to
|
|
55
|
+
* `MaxLengthString<32>`.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* const input: string = 'noshiro';
|
|
61
|
+
*
|
|
62
|
+
* assert.isTrue(isMaxLengthString(input, 32));
|
|
63
|
+
*
|
|
64
|
+
* assert.isFalse(isMaxLengthString(input, 3));
|
|
65
|
+
*
|
|
66
|
+
* if (isMaxLengthString(input, 32)) {
|
|
67
|
+
* const userName: MaxLengthString<32> = input;
|
|
68
|
+
*
|
|
69
|
+
* const relaxed: MaxLengthString<64> = input; // OK (32 <= 64)
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @template S - The input string type (literal types are preserved).
|
|
74
|
+
* @template MaxLength - The maximum number of characters (inclusive).
|
|
75
|
+
* @param s - The string to check.
|
|
76
|
+
* @param maxLength - The maximum number of characters (inclusive).
|
|
77
|
+
* @returns `true` if `s.length <= maxLength`, `false` otherwise. When `true`,
|
|
78
|
+
* TypeScript narrows `s` to `MaxLengthString<MaxLength> & S`.
|
|
79
|
+
*/
|
|
80
|
+
export declare const isMaxLengthString: <S extends string, MaxLength extends SizeType.ArgStr>(s: S, maxLength: MaxLength) => s is MaxLengthString<MaxLength> & S;
|
|
81
|
+
/**
|
|
82
|
+
* Type guard that checks if a string's length is within the inclusive range
|
|
83
|
+
* `[minLength, maxLength]`.
|
|
84
|
+
*
|
|
85
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
86
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
87
|
+
* Plane (e.g. emoji) count as 2.
|
|
88
|
+
*
|
|
89
|
+
* **Type Narrowing Behavior:**
|
|
90
|
+
*
|
|
91
|
+
* - Narrows the input to `BoundedLengthString<MinLength, MaxLength>` while
|
|
92
|
+
* preserving the original string type (e.g. literal types) via intersection.
|
|
93
|
+
* - Since `BoundedLengthString` is the intersection of `MinLengthString` and
|
|
94
|
+
* `MaxLengthString`, the narrowed value is assignable to both, and both
|
|
95
|
+
* bounds can be weakened independently.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
*
|
|
99
|
+
* ```ts
|
|
100
|
+
* const input: string = 'user-12345678';
|
|
101
|
+
*
|
|
102
|
+
* assert.isTrue(isBoundedLengthString(input, 8, 16));
|
|
103
|
+
*
|
|
104
|
+
* assert.isFalse(isBoundedLengthString('user', 8, 16));
|
|
105
|
+
*
|
|
106
|
+
* if (isBoundedLengthString(input, 8, 16)) {
|
|
107
|
+
* const userId: BoundedLengthString<8, 16> = input;
|
|
108
|
+
*
|
|
109
|
+
* const relaxed: BoundedLengthString<1, 255> = input; // OK ([8, 16] ⊆ [1, 255])
|
|
110
|
+
* }
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @template S - The input string type (literal types are preserved).
|
|
114
|
+
* @template MinLength - The minimum number of characters (inclusive).
|
|
115
|
+
* @template MaxLength - The maximum number of characters (inclusive).
|
|
116
|
+
* @param s - The string to check.
|
|
117
|
+
* @param minLength - The minimum number of characters (inclusive).
|
|
118
|
+
* @param maxLength - The maximum number of characters (inclusive).
|
|
119
|
+
* @returns `true` if `minLength <= s.length && s.length <= maxLength`, `false`
|
|
120
|
+
* otherwise. When `true`, TypeScript narrows `s` to
|
|
121
|
+
* `BoundedLengthString<MinLength, MaxLength> & S`.
|
|
122
|
+
*/
|
|
123
|
+
export declare const isBoundedLengthString: <S extends string, MinLength extends SizeType.ArgStr, MaxLength extends SizeType.ArgStr>(s: S, minLength: MinLength, maxLength: MaxLength) => s is BoundedLengthString<MinLength, MaxLength> & S;
|
|
124
|
+
/**
|
|
125
|
+
* Type guard that checks if a string has exactly `length` characters.
|
|
126
|
+
*
|
|
127
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
128
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
129
|
+
* Plane (e.g. emoji) count as 2.
|
|
130
|
+
*
|
|
131
|
+
* **Type Narrowing Behavior:**
|
|
132
|
+
*
|
|
133
|
+
* - Narrows the input to `FixedLengthString<Length>` while preserving the
|
|
134
|
+
* original string type (e.g. literal types) via intersection.
|
|
135
|
+
* - Since `FixedLengthString<Length>` is defined as
|
|
136
|
+
* `BoundedLengthString<Length, Length>`, the narrowed value is assignable to
|
|
137
|
+
* any `MinLengthString<N>` with `N <= Length` and any `MaxLengthString<N>`
|
|
138
|
+
* with `N >= Length`.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
*
|
|
142
|
+
* ```ts
|
|
143
|
+
* const input: string = 'JP';
|
|
144
|
+
*
|
|
145
|
+
* assert.isTrue(isFixedLengthString(input, 2));
|
|
146
|
+
*
|
|
147
|
+
* assert.isFalse(isFixedLengthString(input, 3));
|
|
148
|
+
*
|
|
149
|
+
* if (isFixedLengthString(input, 2)) {
|
|
150
|
+
* const countryCode: FixedLengthString<2> = input;
|
|
151
|
+
*
|
|
152
|
+
* const atMost5: MaxLengthString<5> = input; // OK (2 <= 5)
|
|
153
|
+
* }
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* @template S - The input string type (literal types are preserved).
|
|
157
|
+
* @template Length - The exact number of characters.
|
|
158
|
+
* @param s - The string to check.
|
|
159
|
+
* @param length - The exact number of characters.
|
|
160
|
+
* @returns `true` if `s.length === length`, `false` otherwise. When `true`,
|
|
161
|
+
* TypeScript narrows `s` to `FixedLengthString<Length> & S`.
|
|
162
|
+
*/
|
|
163
|
+
export declare const isFixedLengthString: <S extends string, Length extends SizeType.ArgStr>(s: S, length: Length) => s is FixedLengthString<Length> & S;
|
|
164
|
+
//# sourceMappingURL=is-length-bounded-string.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-length-bounded-string.d.mts","sourceRoot":"","sources":["../../src/guard/is-length-bounded-string.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,iBAAiB,GAC5B,CAAC,SAAS,MAAM,EAChB,SAAS,SAAS,QAAQ,CAAC,MAAM,EAEjC,GAAG,CAAC,EACJ,WAAW,SAAS,KACnB,CAAC,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,CAA0B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,iBAAiB,GAC5B,CAAC,SAAS,MAAM,EAChB,SAAS,SAAS,QAAQ,CAAC,MAAM,EAEjC,GAAG,CAAC,EACJ,WAAW,SAAS,KACnB,CAAC,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,CAA0B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,qBAAqB,GAChC,CAAC,SAAS,MAAM,EAChB,SAAS,SAAS,QAAQ,CAAC,MAAM,EACjC,SAAS,SAAS,QAAQ,CAAC,MAAM,EAEjC,GAAG,CAAC,EACJ,WAAW,SAAS,EACpB,WAAW,SAAS,KACnB,CAAC,IAAI,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,CACJ,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,mBAAmB,GAC9B,CAAC,SAAS,MAAM,EAChB,MAAM,SAAS,QAAQ,CAAC,MAAM,EAE9B,GAAG,CAAC,EACJ,QAAQ,MAAM,KACb,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,GAAG,CAAwB,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type guard that checks if a string has at least `minLength` characters.
|
|
3
|
+
*
|
|
4
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
5
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
6
|
+
* Plane (e.g. emoji) count as 2.
|
|
7
|
+
*
|
|
8
|
+
* **Type Narrowing Behavior:**
|
|
9
|
+
*
|
|
10
|
+
* - Narrows the input to `MinLengthString<MinLength>` while preserving the
|
|
11
|
+
* original string type (e.g. literal types) via intersection.
|
|
12
|
+
* - The result participates in the length-constraint subtyping relation: for
|
|
13
|
+
* example, a value narrowed to `MinLengthString<3>` is assignable to
|
|
14
|
+
* `MinLengthString<1>` (= `NonEmptyString`).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* const input: string = 'very-secret-password';
|
|
20
|
+
*
|
|
21
|
+
* assert.isTrue(isMinLengthString(input, 12));
|
|
22
|
+
*
|
|
23
|
+
* assert.isFalse(isMinLengthString('short', 12));
|
|
24
|
+
*
|
|
25
|
+
* if (isMinLengthString(input, 12)) {
|
|
26
|
+
* const password: MinLengthString<12> = input;
|
|
27
|
+
*
|
|
28
|
+
* const nonEmpty: NonEmptyString = input; // OK (12 >= 1)
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @template S - The input string type (literal types are preserved).
|
|
33
|
+
* @template MinLength - The minimum number of characters (inclusive).
|
|
34
|
+
* @param s - The string to check.
|
|
35
|
+
* @param minLength - The minimum number of characters (inclusive).
|
|
36
|
+
* @returns `true` if `s.length >= minLength`, `false` otherwise. When `true`,
|
|
37
|
+
* TypeScript narrows `s` to `MinLengthString<MinLength> & S`.
|
|
38
|
+
*/
|
|
39
|
+
const isMinLengthString = (s, minLength) => s.length >= minLength;
|
|
40
|
+
/**
|
|
41
|
+
* Type guard that checks if a string has at most `maxLength` characters.
|
|
42
|
+
*
|
|
43
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
44
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
45
|
+
* Plane (e.g. emoji) count as 2.
|
|
46
|
+
*
|
|
47
|
+
* **Type Narrowing Behavior:**
|
|
48
|
+
*
|
|
49
|
+
* - Narrows the input to `MaxLengthString<MaxLength>` while preserving the
|
|
50
|
+
* original string type (e.g. literal types) via intersection.
|
|
51
|
+
* - The result participates in the length-constraint subtyping relation: for
|
|
52
|
+
* example, a value narrowed to `MaxLengthString<16>` is assignable to
|
|
53
|
+
* `MaxLengthString<32>`.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
*
|
|
57
|
+
* ```ts
|
|
58
|
+
* const input: string = 'noshiro';
|
|
59
|
+
*
|
|
60
|
+
* assert.isTrue(isMaxLengthString(input, 32));
|
|
61
|
+
*
|
|
62
|
+
* assert.isFalse(isMaxLengthString(input, 3));
|
|
63
|
+
*
|
|
64
|
+
* if (isMaxLengthString(input, 32)) {
|
|
65
|
+
* const userName: MaxLengthString<32> = input;
|
|
66
|
+
*
|
|
67
|
+
* const relaxed: MaxLengthString<64> = input; // OK (32 <= 64)
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @template S - The input string type (literal types are preserved).
|
|
72
|
+
* @template MaxLength - The maximum number of characters (inclusive).
|
|
73
|
+
* @param s - The string to check.
|
|
74
|
+
* @param maxLength - The maximum number of characters (inclusive).
|
|
75
|
+
* @returns `true` if `s.length <= maxLength`, `false` otherwise. When `true`,
|
|
76
|
+
* TypeScript narrows `s` to `MaxLengthString<MaxLength> & S`.
|
|
77
|
+
*/
|
|
78
|
+
const isMaxLengthString = (s, maxLength) => s.length <= maxLength;
|
|
79
|
+
/**
|
|
80
|
+
* Type guard that checks if a string's length is within the inclusive range
|
|
81
|
+
* `[minLength, maxLength]`.
|
|
82
|
+
*
|
|
83
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
84
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
85
|
+
* Plane (e.g. emoji) count as 2.
|
|
86
|
+
*
|
|
87
|
+
* **Type Narrowing Behavior:**
|
|
88
|
+
*
|
|
89
|
+
* - Narrows the input to `BoundedLengthString<MinLength, MaxLength>` while
|
|
90
|
+
* preserving the original string type (e.g. literal types) via intersection.
|
|
91
|
+
* - Since `BoundedLengthString` is the intersection of `MinLengthString` and
|
|
92
|
+
* `MaxLengthString`, the narrowed value is assignable to both, and both
|
|
93
|
+
* bounds can be weakened independently.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
*
|
|
97
|
+
* ```ts
|
|
98
|
+
* const input: string = 'user-12345678';
|
|
99
|
+
*
|
|
100
|
+
* assert.isTrue(isBoundedLengthString(input, 8, 16));
|
|
101
|
+
*
|
|
102
|
+
* assert.isFalse(isBoundedLengthString('user', 8, 16));
|
|
103
|
+
*
|
|
104
|
+
* if (isBoundedLengthString(input, 8, 16)) {
|
|
105
|
+
* const userId: BoundedLengthString<8, 16> = input;
|
|
106
|
+
*
|
|
107
|
+
* const relaxed: BoundedLengthString<1, 255> = input; // OK ([8, 16] ⊆ [1, 255])
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* @template S - The input string type (literal types are preserved).
|
|
112
|
+
* @template MinLength - The minimum number of characters (inclusive).
|
|
113
|
+
* @template MaxLength - The maximum number of characters (inclusive).
|
|
114
|
+
* @param s - The string to check.
|
|
115
|
+
* @param minLength - The minimum number of characters (inclusive).
|
|
116
|
+
* @param maxLength - The maximum number of characters (inclusive).
|
|
117
|
+
* @returns `true` if `minLength <= s.length && s.length <= maxLength`, `false`
|
|
118
|
+
* otherwise. When `true`, TypeScript narrows `s` to
|
|
119
|
+
* `BoundedLengthString<MinLength, MaxLength> & S`.
|
|
120
|
+
*/
|
|
121
|
+
const isBoundedLengthString = (s, minLength, maxLength) => s.length >= minLength && s.length <= maxLength;
|
|
122
|
+
/**
|
|
123
|
+
* Type guard that checks if a string has exactly `length` characters.
|
|
124
|
+
*
|
|
125
|
+
* The length is measured in UTF-16 code units (the same unit as
|
|
126
|
+
* `String.prototype.length`), so characters outside the Basic Multilingual
|
|
127
|
+
* Plane (e.g. emoji) count as 2.
|
|
128
|
+
*
|
|
129
|
+
* **Type Narrowing Behavior:**
|
|
130
|
+
*
|
|
131
|
+
* - Narrows the input to `FixedLengthString<Length>` while preserving the
|
|
132
|
+
* original string type (e.g. literal types) via intersection.
|
|
133
|
+
* - Since `FixedLengthString<Length>` is defined as
|
|
134
|
+
* `BoundedLengthString<Length, Length>`, the narrowed value is assignable to
|
|
135
|
+
* any `MinLengthString<N>` with `N <= Length` and any `MaxLengthString<N>`
|
|
136
|
+
* with `N >= Length`.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
*
|
|
140
|
+
* ```ts
|
|
141
|
+
* const input: string = 'JP';
|
|
142
|
+
*
|
|
143
|
+
* assert.isTrue(isFixedLengthString(input, 2));
|
|
144
|
+
*
|
|
145
|
+
* assert.isFalse(isFixedLengthString(input, 3));
|
|
146
|
+
*
|
|
147
|
+
* if (isFixedLengthString(input, 2)) {
|
|
148
|
+
* const countryCode: FixedLengthString<2> = input;
|
|
149
|
+
*
|
|
150
|
+
* const atMost5: MaxLengthString<5> = input; // OK (2 <= 5)
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @template S - The input string type (literal types are preserved).
|
|
155
|
+
* @template Length - The exact number of characters.
|
|
156
|
+
* @param s - The string to check.
|
|
157
|
+
* @param length - The exact number of characters.
|
|
158
|
+
* @returns `true` if `s.length === length`, `false` otherwise. When `true`,
|
|
159
|
+
* TypeScript narrows `s` to `FixedLengthString<Length> & S`.
|
|
160
|
+
*/
|
|
161
|
+
const isFixedLengthString = (s, length) => s.length === length;
|
|
162
|
+
|
|
163
|
+
export { isBoundedLengthString, isFixedLengthString, isMaxLengthString, isMinLengthString };
|
|
164
|
+
//# sourceMappingURL=is-length-bounded-string.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-length-bounded-string.mjs","sources":["../../src/guard/is-length-bounded-string.mts"],"sourcesContent":[null],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACI,MAAM,iBAAiB,GAAG,CAI/B,CAAI,EACJ,SAAoB,KACoB,CAAC,CAAC,MAAM,IAAI;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACI,MAAM,iBAAiB,GAAG,CAI/B,CAAI,EACJ,SAAoB,KACoB,CAAC,CAAC,MAAM,IAAI;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACI,MAAM,qBAAqB,GAAG,CAKnC,CAAI,EACJ,SAAoB,EACpB,SAAoB,KAEpB,CAAC,CAAC,MAAM,IAAI,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCG;AACI,MAAM,mBAAmB,GAAG,CAIjC,CAAI,EACJ,MAAc,KACyB,CAAC,CAAC,MAAM,KAAK;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ export { createQueue } from './collections/queue.mjs';
|
|
|
6
6
|
export { createStack } from './collections/stack.mjs';
|
|
7
7
|
export { expectType } from './expect-type.mjs';
|
|
8
8
|
export { hasKey } from './guard/has-key.mjs';
|
|
9
|
+
export { isBoundedLengthString, isFixedLengthString, isMaxLengthString, isMinLengthString } from './guard/is-length-bounded-string.mjs';
|
|
9
10
|
export { isNonEmptyString } from './guard/is-non-empty-string.mjs';
|
|
10
11
|
export { isNonNullObject } from './guard/is-non-null-object.mjs';
|
|
11
12
|
export { isPrimitive } from './guard/is-primitive.mjs';
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -247,7 +247,7 @@ export declare const Int: {
|
|
|
247
247
|
* @param b - The divisor (must be non-zero)
|
|
248
248
|
* @returns The integer quotient as an Int
|
|
249
249
|
*/
|
|
250
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int>, y: 1 | 2 | 3 |
|
|
250
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -40 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -20 | -30 | -12 | -13 | -14 | -15 | -16 | -17 | -18 | -19 | -21 | -22 | -23 | -24 | -25 | -26 | -27 | -28 | -29 | -31 | -32 | -33 | -34 | -35 | -36 | -37 | -38 | -39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
251
251
|
readonly NaNValue: false;
|
|
252
252
|
readonly Finite: true;
|
|
253
253
|
readonly Int: true;
|
|
@@ -134,7 +134,7 @@ export declare const Int16: {
|
|
|
134
134
|
* @param b The divisor Int16.
|
|
135
135
|
* @returns `⌊a / b⌋` clamped to [-32768, 32767] as an Int16.
|
|
136
136
|
*/
|
|
137
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: 1 | 2 | 3 |
|
|
137
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -40 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -20 | -30 | -12 | -13 | -14 | -15 | -16 | -17 | -18 | -19 | -21 | -22 | -23 | -24 | -25 | -26 | -27 | -28 | -29 | -31 | -32 | -33 | -34 | -35 | -36 | -37 | -38 | -39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
138
138
|
readonly NaNValue: false;
|
|
139
139
|
readonly Finite: true;
|
|
140
140
|
readonly Int: true;
|
|
@@ -130,7 +130,7 @@ export declare const Int32: {
|
|
|
130
130
|
* @param b The divisor Int32.
|
|
131
131
|
* @returns `⌊a / b⌋` clamped to [-2147483648, 2147483647] as an Int32.
|
|
132
132
|
*/
|
|
133
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: 1 | 2 | 3 |
|
|
133
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -40 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -20 | -30 | -12 | -13 | -14 | -15 | -16 | -17 | -18 | -19 | -21 | -22 | -23 | -24 | -25 | -26 | -27 | -28 | -29 | -31 | -32 | -33 | -34 | -35 | -36 | -37 | -38 | -39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
134
134
|
readonly NaNValue: false;
|
|
135
135
|
readonly Finite: true;
|
|
136
136
|
readonly Int: true;
|
|
@@ -130,7 +130,7 @@ export declare const NonNegativeInt16: {
|
|
|
130
130
|
* @param b The divisor NonNegativeInt16.
|
|
131
131
|
* @returns `⌊a / b⌋` clamped to [0, 32767] as a NonNegativeInt16.
|
|
132
132
|
*/
|
|
133
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: 1 | 2 | 3 |
|
|
133
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
134
134
|
readonly NaNValue: false;
|
|
135
135
|
readonly Finite: true;
|
|
136
136
|
readonly Int: true;
|
|
@@ -129,7 +129,7 @@ export declare const NonNegativeInt32: {
|
|
|
129
129
|
* @param b The divisor NonNegativeInt32.
|
|
130
130
|
* @returns `⌊a / b⌋` clamped to [0, 2147483647] as a NonNegativeInt32.
|
|
131
131
|
*/
|
|
132
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt32>, y: 1 | 2 | 3 |
|
|
132
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt32>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
133
133
|
readonly NaNValue: false;
|
|
134
134
|
readonly Finite: true;
|
|
135
135
|
readonly Int: true;
|
|
@@ -280,7 +280,7 @@ export declare const PositiveInt: {
|
|
|
280
280
|
* @param b - The divisor (positive integer, guaranteed non-zero)
|
|
281
281
|
* @returns `max(1, ⌊a / b⌋)` as a PositiveInt
|
|
282
282
|
*/
|
|
283
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveInt>, y: 1 | 2 | 3 |
|
|
283
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveInt>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
284
284
|
readonly NaNValue: false;
|
|
285
285
|
readonly Finite: true;
|
|
286
286
|
readonly Int: true;
|
|
@@ -132,7 +132,7 @@ export declare const PositiveInt16: {
|
|
|
132
132
|
* @param b The divisor PositiveInt16.
|
|
133
133
|
* @returns `⌊a / b⌋` clamped to [1, 32767] as a PositiveInt16.
|
|
134
134
|
*/
|
|
135
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveInt16>, y: 1 | 2 | 3 |
|
|
135
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveInt16>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
136
136
|
readonly NaNValue: false;
|
|
137
137
|
readonly Finite: true;
|
|
138
138
|
readonly Int: true;
|
|
@@ -130,7 +130,7 @@ export declare const PositiveInt32: {
|
|
|
130
130
|
* @param b The divisor PositiveInt32.
|
|
131
131
|
* @returns `⌊a / b⌋` clamped to [1, 2147483647] as a PositiveInt32.
|
|
132
132
|
*/
|
|
133
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveInt32>, y: 1 | 2 | 3 |
|
|
133
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveInt32>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
134
134
|
readonly NaNValue: false;
|
|
135
135
|
readonly Finite: true;
|
|
136
136
|
readonly Int: true;
|
|
@@ -284,7 +284,7 @@ export declare const PositiveSafeInt: {
|
|
|
284
284
|
* @param b The divisor PositiveSafeInt.
|
|
285
285
|
* @returns `⌊a / b⌋` clamped to [1, MAX_SAFE_INTEGER] as a PositiveSafeInt.
|
|
286
286
|
*/
|
|
287
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveSafeInt>, y: 1 | 2 | 3 |
|
|
287
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveSafeInt>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
288
288
|
readonly NaNValue: false;
|
|
289
289
|
readonly Finite: true;
|
|
290
290
|
readonly Int: true;
|
|
@@ -131,7 +131,7 @@ export declare const PositiveUint16: {
|
|
|
131
131
|
* @param b The divisor PositiveUint16.
|
|
132
132
|
* @returns `⌊a / b⌋` clamped to [1, 65535] as a PositiveUint16.
|
|
133
133
|
*/
|
|
134
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveUint16>, y: 1 | 2 | 3 |
|
|
134
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveUint16>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
135
135
|
readonly NaNValue: false;
|
|
136
136
|
readonly Finite: true;
|
|
137
137
|
readonly Int: true;
|
|
@@ -130,7 +130,7 @@ export declare const PositiveUint32: {
|
|
|
130
130
|
* @param b The divisor PositiveUint32.
|
|
131
131
|
* @returns `⌊a / b⌋` clamped to [1, 4294967295] as a PositiveUint32.
|
|
132
132
|
*/
|
|
133
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveUint32>, y: 1 | 2 | 3 |
|
|
133
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_PositiveUint32>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
134
134
|
readonly NaNValue: false;
|
|
135
135
|
readonly Finite: true;
|
|
136
136
|
readonly Int: true;
|
|
@@ -293,7 +293,7 @@ export declare const SafeInt: {
|
|
|
293
293
|
* @param b - The divisor (must be non-zero)
|
|
294
294
|
* @returns The integer quotient as a SafeInt
|
|
295
295
|
*/
|
|
296
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_SafeInt>, y: 1 | 2 | 3 |
|
|
296
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_SafeInt>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -40 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -20 | -30 | -12 | -13 | -14 | -15 | -16 | -17 | -18 | -19 | -21 | -22 | -23 | -24 | -25 | -26 | -27 | -28 | -29 | -31 | -32 | -33 | -34 | -35 | -36 | -37 | -38 | -39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
297
297
|
readonly NaNValue: false;
|
|
298
298
|
readonly Finite: true;
|
|
299
299
|
readonly Int: true;
|
|
@@ -126,7 +126,7 @@ export declare const SafeUint: {
|
|
|
126
126
|
* @param b The divisor SafeUint.
|
|
127
127
|
* @returns `⌊a / b⌋` clamped to [0, MAX_SAFE_INTEGER] as a SafeUint.
|
|
128
128
|
*/
|
|
129
|
-
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_SafeUint>, y: 1 | 2 | 3 |
|
|
129
|
+
readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_SafeUint>, y: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
130
130
|
readonly NaNValue: false;
|
|
131
131
|
readonly Finite: true;
|
|
132
132
|
readonly Int: true;
|