@joookiwi/type 1.0.0 → 1.1.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/boolean (false).d.ts +1 -2
- package/dist/boolean (false).d.ts.map +1 -1
- package/dist/boolean (true).d.ts +0 -2
- package/dist/boolean (true).d.ts.map +1 -1
- package/dist/collection (array).d.ts +65 -0
- package/dist/collection (array).d.ts.map +1 -0
- package/dist/collection (map).d.ts +792 -0
- package/dist/collection (map).d.ts.map +1 -0
- package/dist/collection (mutable array).d.ts +65 -0
- package/dist/collection (mutable array).d.ts.map +1 -0
- package/dist/collection (mutable map).d.ts +792 -0
- package/dist/collection (mutable map).d.ts.map +1 -0
- package/dist/collection (mutable set).d.ts +65 -0
- package/dist/collection (mutable set).d.ts.map +1 -0
- package/dist/collection (set).d.ts +65 -0
- package/dist/collection (set).d.ts.map +1 -0
- package/dist/collection.d.ts +243 -0
- package/dist/collection.d.ts.map +1 -0
- package/dist/empty.d.ts +50 -8
- package/dist/empty.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/nullable.d.ts +22 -0
- package/dist/nullable.d.ts.map +1 -1
- package/dist/numeric (-1).d.ts +0 -11
- package/dist/numeric (-1).d.ts.map +1 -1
- package/dist/numeric (0).d.ts +2 -13
- package/dist/numeric (0).d.ts.map +1 -1
- package/dist/numeric (1).d.ts +2 -13
- package/dist/numeric (1).d.ts.map +1 -1
- package/dist/numeric (2).d.ts +2 -13
- package/dist/numeric (2).d.ts.map +1 -1
- package/dist/numeric.d.ts +0 -4
- package/dist/numeric.d.ts.map +1 -1
- package/dist/string (individual).d.ts +4 -0
- package/dist/string (individual).d.ts.map +1 -1
- package/package.json +9 -6
- package/src/boolean (false).ts +1 -2
- package/src/boolean (true).ts +0 -2
- package/src/collection (array).ts +69 -0
- package/src/collection (map).ts +833 -0
- package/src/collection (mutable array).ts +70 -0
- package/src/collection (mutable map).ts +833 -0
- package/src/collection (mutable set).ts +69 -0
- package/src/collection (set).ts +69 -0
- package/src/collection.ts +246 -0
- package/src/empty.ts +50 -8
- package/src/index.ts +7 -0
- package/src/nullable.ts +26 -0
- package/src/numeric (-1).ts +0 -11
- package/src/numeric (0).ts +2 -13
- package/src/numeric (1).ts +2 -13
- package/src/numeric (2).ts +2 -13
- package/src/numeric.ts +0 -4
- package/src/string (individual).ts +4 -0
package/src/numeric.ts
CHANGED
|
@@ -12,7 +12,6 @@ export type Numeric<T extends | number | bigint = | number | bigint, > = T
|
|
|
12
12
|
* A type-alias for a value ({@link Number} or {@link BigInt})
|
|
13
13
|
* in a {@link String} template
|
|
14
14
|
*
|
|
15
|
-
* @see Numeric
|
|
16
15
|
* @see Template
|
|
17
16
|
* @see NumberTemplate
|
|
18
17
|
* @see BigIntTemplate
|
|
@@ -23,7 +22,6 @@ export type NumericTemplate<T extends Numeric = Numeric, > = `${T}`
|
|
|
23
22
|
* A type-alias for a value ({@link Number} or {@link BigInt})
|
|
24
23
|
* as a primitive or in a {@link String} template
|
|
25
24
|
*
|
|
26
|
-
* @see Numeric
|
|
27
25
|
* @see Template
|
|
28
26
|
* @see TemplateOrNumber
|
|
29
27
|
* @see TemplateOrBigInt
|
|
@@ -35,7 +33,6 @@ export type TemplateOrNumeric<T extends Numeric = Numeric, > = | T | `${T}`
|
|
|
35
33
|
* A type-alias for a value ({@link Number} or {@link BigInt})
|
|
36
34
|
* as a primitive or an object
|
|
37
35
|
*
|
|
38
|
-
* @see Numeric
|
|
39
36
|
* @see NumberOrObject
|
|
40
37
|
* @see BigIntOrObject
|
|
41
38
|
* @see TemplateOrNumericOrObject
|
|
@@ -46,7 +43,6 @@ export type NumericOrObject<T extends Numeric = Numeric, > = | T | Number | BigI
|
|
|
46
43
|
* A type-alias for a value ({@link Number} or {@link BigInt})
|
|
47
44
|
* as a primitive, an object or in a {@link String} template
|
|
48
45
|
*
|
|
49
|
-
* @see Numeric
|
|
50
46
|
* @see Template
|
|
51
47
|
* @see TemplateOrNumberOrObject
|
|
52
48
|
* @see TemplateOrBigIntOrObject
|
|
@@ -31,5 +31,9 @@ export type Comma = ','
|
|
|
31
31
|
export type Point = '.'
|
|
32
32
|
/** A type-alias for the "infinity" {@link String character} */
|
|
33
33
|
export type InfinityString = '∞'
|
|
34
|
+
/** A type-alias for the word "infinity" {@link String} */
|
|
35
|
+
export type InfinityWordString = "Infinity"
|
|
36
|
+
/** A type-alias for the word "Invalid date" {@link String} */
|
|
37
|
+
export type InvalidDateString = "Invalid Date"
|
|
34
38
|
/** A type-alias for the "suspension point" {@link String character} */
|
|
35
39
|
export type SuspensionPoint = '…'
|