@joookiwi/type 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/boolean (false).d.ts +1 -8
  2. package/dist/boolean (false).d.ts.map +1 -1
  3. package/dist/boolean (true).d.ts +0 -8
  4. package/dist/boolean (true).d.ts.map +1 -1
  5. package/dist/boolean.d.ts +0 -6
  6. package/dist/boolean.d.ts.map +1 -1
  7. package/dist/collection (array).d.ts +59 -0
  8. package/dist/collection (array).d.ts.map +1 -0
  9. package/dist/collection (map).d.ts +786 -0
  10. package/dist/collection (map).d.ts.map +1 -0
  11. package/dist/collection (mutable array).d.ts +59 -0
  12. package/dist/collection (mutable array).d.ts.map +1 -0
  13. package/dist/collection (mutable map).d.ts +786 -0
  14. package/dist/collection (mutable map).d.ts.map +1 -0
  15. package/dist/collection (mutable set).d.ts +59 -0
  16. package/dist/collection (mutable set).d.ts.map +1 -0
  17. package/dist/collection (set).d.ts +59 -0
  18. package/dist/collection (set).d.ts.map +1 -0
  19. package/dist/collection.d.ts +446 -0
  20. package/dist/collection.d.ts.map +1 -0
  21. package/dist/empty.d.ts +50 -14
  22. package/dist/empty.d.ts.map +1 -1
  23. package/dist/index.d.ts +7 -6
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/mixed.d.ts +0 -6
  26. package/dist/mixed.d.ts.map +1 -1
  27. package/dist/nullable.d.ts +22 -6
  28. package/dist/nullable.d.ts.map +1 -1
  29. package/dist/numeric (-1).d.ts +0 -17
  30. package/dist/numeric (-1).d.ts.map +1 -1
  31. package/dist/numeric (0).d.ts +2 -19
  32. package/dist/numeric (0).d.ts.map +1 -1
  33. package/dist/numeric (1).d.ts +2 -19
  34. package/dist/numeric (1).d.ts.map +1 -1
  35. package/dist/numeric (2).d.ts +2 -19
  36. package/dist/numeric (2).d.ts.map +1 -1
  37. package/dist/numeric (bigint).d.ts +0 -6
  38. package/dist/numeric (bigint).d.ts.map +1 -1
  39. package/dist/numeric (number).d.ts +0 -6
  40. package/dist/numeric (number).d.ts.map +1 -1
  41. package/dist/numeric.d.ts +0 -10
  42. package/dist/numeric.d.ts.map +1 -1
  43. package/dist/string (individual).d.ts +4 -6
  44. package/dist/string (individual).d.ts.map +1 -1
  45. package/dist/string.d.ts +0 -6
  46. package/dist/string.d.ts.map +1 -1
  47. package/dist/symbol.d.ts +0 -6
  48. package/dist/symbol.d.ts.map +1 -1
  49. package/package.json +10 -7
  50. package/src/boolean (false).ts +12 -8
  51. package/src/boolean (true).ts +11 -8
  52. package/src/boolean.ts +11 -6
  53. package/src/collection (array).ts +74 -0
  54. package/src/collection (map).ts +838 -0
  55. package/src/collection (mutable array).ts +75 -0
  56. package/src/collection (mutable map).ts +838 -0
  57. package/src/collection (mutable set).ts +74 -0
  58. package/src/collection (set).ts +74 -0
  59. package/src/collection.ts +482 -0
  60. package/src/empty.ts +61 -14
  61. package/src/index.ts +18 -6
  62. package/src/mixed.ts +11 -6
  63. package/src/nullable.ts +37 -6
  64. package/src/numeric (-1).ts +11 -17
  65. package/src/numeric (0).ts +13 -19
  66. package/src/numeric (1).ts +13 -19
  67. package/src/numeric (2).ts +13 -19
  68. package/src/numeric (bigint).ts +11 -6
  69. package/src/numeric (number).ts +11 -6
  70. package/src/numeric.ts +11 -10
  71. package/src/string (individual).ts +15 -6
  72. package/src/string.ts +11 -6
  73. package/src/symbol.ts +11 -6
package/src/empty.ts CHANGED
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /** A type-alias for an empty {@link String} */
9
14
  export type EmptyString = ""
@@ -21,27 +26,69 @@ export type EmptyArray = readonly []
21
26
  */
22
27
  export type EmptyMutableArray = []
23
28
 
24
- /** A type-alias for an empty {@link ReadonlySet Set} */
25
- export type EmptySet = ReadonlySet<never>
29
+ /**
30
+ * A type-alias for an empty {@link ReadonlySet Set}
31
+ *
32
+ * @param T The {@link ReadonlySet Set} type (<i><b>never</b> by default</i>)
33
+ * @see EmptyMutableSet
34
+ */
35
+ export type EmptySet<T = never, > = ReadonlySet<T>
36
+ /**
37
+ * A type-alias for an empty {@link Set MutableSet}
38
+ *
39
+ * @param T The {@link Set MutableSet} type (<i><b>never</b> by default</i>)
40
+ * @see EmptySet
41
+ */
42
+ export type EmptyMutableSet<T = never, > = Set<T>
26
43
 
27
- /** A type-alias for an empty {@link WeakSet} */
28
- export type EmptyWeakSet = Readonly<WeakSet<WeakKey>>
44
+ /**
45
+ * A type-alias for an empty {@link WeakSet}
46
+ *
47
+ * @param T The {@link WeakSet} type (<i><b>never</b> by default</i>)
48
+ * @see EmptyMutableWeakSet
49
+ */
50
+ export type EmptyWeakSet<T extends WeakKey = never, > = Readonly<WeakSet<T>>
51
+ /**
52
+ * A type-alias for an empty {@link WeakSet MutableWeakSet}
53
+ *
54
+ * @param T The {@link WeakSet MutableWeakSet} type (<i><b>never</b> by default</i>)
55
+ * @see EmptyWeakSet
56
+ */
57
+ export type EmptyMutableWeakSet<T extends WeakKey = never, > = WeakSet<T>
29
58
 
30
59
  /**
31
60
  * A type-alias for an empty {@link ReadonlyMap Map}
32
61
  *
62
+ * @param K The {@link ReadonlyMap Map} key type (<i><b>never</b> by default</i>)
63
+ * @param V The {@link ReadonlyMap Map} value type (<i><b>never</b> by default</i>)
33
64
  * @see EmptyMutableMap
34
65
  */
35
- export type EmptyMap = ReadonlyMap<any, never>
66
+ export type EmptyMap<K = never, V = never, > = ReadonlyMap<K, V>
36
67
  /**
37
68
  * A type-alias for an empty {@link Map MutableMap}
38
69
  *
70
+ * @param K The {@link Map MutableMap} key type (<i><b>never</b> by default</i>)
71
+ * @param V The {@link Map MutableMap} value type (<i><b>never</b> by default</i>)
39
72
  * @see EmptyMap
40
73
  */
41
- export type EmptyMutableMap = Map<any, never>
74
+ export type EmptyMutableMap<K = never, V = never, > = Map<K, V>
42
75
 
43
- /** A type-alias for an empty {@link WeakMap} */
44
- export type EmptyWeakMap = Readonly<WeakMap<WeakKey, never>>
76
+ /**
77
+ * A type-alias for an empty {@link WeakMap}
78
+ *
79
+ * @param K The {@link WeakMap} key type (<i><b>never</b> by default</i>)
80
+ * @param V The {@link WeakMap} value type (<i><b>never</b> by default</i>)
81
+ * @see EmptyMutableWeakMap
82
+ */
83
+ export type EmptyWeakMap<K extends WeakKey = never, V = never, > = Readonly<WeakMap<K, V>>
84
+ /**
85
+ * A type-alias for an empty {@link WeakMap MutableWeakMap}
86
+ *
87
+ * @param K The {@link WeakMap MutableWeakMap} key type (<i><b>never</b> by default</i>)
88
+ * @param V The {@link WeakMap MutableWeakMap} value type (<i><b>never</b> by default</i>)
89
+ * @see EmptyWeakMap
90
+ */
91
+ export type EmptyMutableWeakMap<K extends WeakKey = never, V = never, > = WeakMap<K, V>
45
92
 
46
93
  /**
47
94
  * A type-alias for an empty {@link Object}
package/src/index.ts CHANGED
@@ -1,13 +1,25 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  export type * from "./boolean"
9
14
  export type * from "./boolean (false)"
10
15
  export type * from "./boolean (true)"
16
+ export type * from "./collection"
17
+ export type * from "./collection (array)"
18
+ export type * from "./collection (mutable array)"
19
+ export type * from "./collection (mutable set)"
20
+ export type * from "./collection (mutable map)"
21
+ export type * from "./collection (set)"
22
+ export type * from "./collection (map)"
11
23
  export type * from "./empty"
12
24
  export type * from "./mixed"
13
25
  export type * from "./nullable"
package/src/mixed.ts CHANGED
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  //#region -------------------- mixed (direct - double) --------------------
9
14
 
package/src/nullable.ts CHANGED
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  import type {Numeric} from "./numeric"
9
14
  import type {Zero, ZeroBigInt, ZeroNumber} from "./numeric (0)"
@@ -835,3 +840,29 @@ export type NullableJavascriptSymbol<T extends JavascriptSymbol = JavascriptSymb
835
840
  export type NullableTypescriptSymbol<T extends TypescriptSymbol = TypescriptSymbol, > = | T | undefined
836
841
 
837
842
  //#endregion -------------------- symbol --------------------
843
+ //#region -------------------- unknown --------------------
844
+
845
+ /**
846
+ * A type-alias for <b>unknown</b> or <b>undefined</b>
847
+ *
848
+ * @see UndefinedOr
849
+ * @see NullableUnknown
850
+ */
851
+ export type UndefinedOrUnknown<T extends unknown = unknown, > = | T | undefined
852
+ /**
853
+ * A type-alias for <b>unknown</b> or <b>null</b>
854
+ *
855
+ * @see NullOr
856
+ * @see NullableUnknown
857
+ */
858
+ export type NullOrUnknown<T extends unknown = unknown, > = | T | null
859
+ /**
860
+ * A type-alias for <b>unknown</b> or <b>null</b>
861
+ *
862
+ * @see Nullable
863
+ * @see UndefinedOrUnknown
864
+ * @see NullOrUnknown
865
+ */
866
+ export type NullableUnknown<T extends unknown = unknown, > = | T | null | undefined
867
+
868
+ //#endregion -------------------- unknown --------------------
@@ -1,15 +1,19 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /**
9
14
  * A type-alias for <b>-1</b> (as a {@link Number} or a {@link BigInt})
10
15
  * as a primitive
11
16
  *
12
- * @see Numeric
13
17
  * @see MinusOneNumber
14
18
  * @see MinusOneBigInt
15
19
  */
@@ -33,9 +37,6 @@ export type MinusOneBigInt<T extends -1n = -1n, > = T
33
37
  * A type-alias for <b>-1</b> (as a {@link Number} or a {@link BigInt})
34
38
  * in a {@link String} template
35
39
  *
36
- * @see MinusOne
37
- * @see MinusOneNumber
38
- * @see MinusOneBigInt
39
40
  * @see Template
40
41
  * @see TemplateOrMinusOne
41
42
  * @see NumericTemplate
@@ -48,9 +49,6 @@ export type MinusOneTemplate<T extends | -1 | -1n = | -1 | -1n, > = `${T}`
48
49
  * A type-alias for <b>-1</b> (as a {@link Number} or a {@link BigInt})
49
50
  * as a primitive or in a {@link String} template
50
51
  *
51
- * @see MinusOne
52
- * @see MinusOneNumber
53
- * @see MinusOneBigInt
54
52
  * @see Template
55
53
  * @see MinusOneTemplate
56
54
  * @see TemplateOrMinusOneNumber
@@ -64,8 +62,6 @@ export type TemplateOrMinusOne<T extends | -1 | -1n = | -1 | -1n, > = | T | `${T
64
62
  * A type-alias for the {@link Number} <b>-1</b>
65
63
  * as a primitive or in a {@link String} template
66
64
  *
67
- * @see MinusOne
68
- * @see MinusOneNumber
69
65
  * @see Template
70
66
  * @see MinusOneTemplate
71
67
  * @see TemplateOrMinusOne
@@ -77,8 +73,6 @@ export type TemplateOrMinusOneNumber<T extends -1 = -1, > = | T | `${T}`
77
73
  * A type-alias for the {@link BigInt} <b>-1</b>
78
74
  * as a primitive or in a {@link String} template
79
75
  *
80
- * @see MinusOne
81
- * @see MinusOneBigInt
82
76
  * @see Template
83
77
  * @see MinusOneTemplate
84
78
  * @see TemplateOrMinusOne
@@ -1,17 +1,21 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /**
9
14
  * A type-alias for <b>0</b> (as a {@link Number} or a {@link BigInt})
10
15
  * as a primitive
11
16
  *
12
- * @see Numeric
13
- * @see MinusOneNumber
14
- * @see MinusOneBigInt
17
+ * @see ZeroNumber
18
+ * @see ZeroBigInt
15
19
  */
16
20
  export type Zero<T extends | 0 | 0n = | 0 | 0n, > = T
17
21
  /**
@@ -33,9 +37,6 @@ export type ZeroBigInt<T extends 0n = 0n, > = T
33
37
  * A type-alias for <b>0</b> (as a {@link Number} or a {@link BigInt})
34
38
  * in a {@link String} template
35
39
  *
36
- * @see Zero
37
- * @see ZeroNumber
38
- * @see ZeroBigInt
39
40
  * @see Template
40
41
  * @see TemplateOrZero
41
42
  * @see TemplateOrZeroNumber
@@ -50,9 +51,6 @@ export type ZeroTemplate<T extends | 0 | 0n = | 0 | 0n, > = `${T}`
50
51
  * A type-alias for <b>0</b> (as a {@link Number} or a {@link BigInt})
51
52
  * as a primitive or in a {@link String} template
52
53
  *
53
- * @see Zero
54
- * @see ZeroNumber
55
- * @see ZeroBigInt
56
54
  * @see Template
57
55
  * @see ZeroTemplate
58
56
  * @see TemplateOrZeroNumber
@@ -66,8 +64,6 @@ export type TemplateOrZero<T extends | 0 | 0n = | 0 | 0n, > = | T | `${T}`
66
64
  * A type-alias for the {@link Number} <b>0</b>
67
65
  * as a primitive or in a {@link String} template
68
66
  *
69
- * @see Zero
70
- * @see ZeroNumber
71
67
  * @see Template
72
68
  * @see ZeroTemplate
73
69
  * @see TemplateOrZero
@@ -79,8 +75,6 @@ export type TemplateOrZeroNumber<T extends 0 = 0, > = | T | `${T}`
79
75
  * A type-alias for the {@link BigInt} <b>0</b>
80
76
  * as a primitive or in a {@link String} template
81
77
  *
82
- * @see Zero
83
- * @see ZeroBigInt
84
78
  * @see Template
85
79
  * @see ZeroTemplate
86
80
  * @see TemplateOrZero
@@ -1,17 +1,21 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /**
9
14
  * A type-alias for <b>1</b> (as a {@link Number} or a {@link BigInt})
10
15
  * as a primitive
11
16
  *
12
- * @see Numeric
13
- * @see MinusOneNumber
14
- * @see MinusOneBigInt
17
+ * @see OneNumber
18
+ * @see OneBigInt
15
19
  */
16
20
  export type One<T extends | 1 | 1n = | 1 | 1n, > = T
17
21
  /**
@@ -33,9 +37,6 @@ export type OneBigInt<T extends 1n = 1n, > = T
33
37
  * A type-alias for <b>1</b> (as a {@link Number} or a {@link BigInt})
34
38
  * in a {@link String} template
35
39
  *
36
- * @see One
37
- * @see OneNumber
38
- * @see OneBigInt
39
40
  * @see Template
40
41
  * @see TemplateOrOne
41
42
  * @see TemplateOrOneNumber
@@ -50,9 +51,6 @@ export type OneTemplate<T extends | 1 | 1n = | 1 | 1n, > = `${T}`
50
51
  * A type-alias for <b>1</b> (as a {@link Number} or a {@link BigInt})
51
52
  * as a primitive or in a {@link String} template
52
53
  *
53
- * @see One
54
- * @see OneNumber
55
- * @see OneBigInt
56
54
  * @see Template
57
55
  * @see OneTemplate
58
56
  * @see TemplateOrOneNumber
@@ -66,8 +64,6 @@ export type TemplateOrOne<T extends | 1 | 1n = | 1 | 1n, > = | T | `${T}`
66
64
  * A type-alias for the {@link Number} <b>1</b>
67
65
  * as a primitive or in a {@link String} template
68
66
  *
69
- * @see One
70
- * @see OneBigInt
71
67
  * @see Template
72
68
  * @see OneTemplate
73
69
  * @see TemplateOrOne
@@ -79,8 +75,6 @@ export type TemplateOrOneNumber<T extends 1 = 1, > = | T | `${T}`
79
75
  * A type-alias for the {@link BigInt} <b>1</b>
80
76
  * as a primitive or in a {@link String} template
81
77
  *
82
- * @see One
83
- * @see OneBigInt
84
78
  * @see Template
85
79
  * @see OneTemplate
86
80
  * @see TemplateOrOne
@@ -1,17 +1,21 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /**
9
14
  * A type-alias for <b>2</b> (as a {@link Number} or a {@link BigInt})
10
15
  * as a primitive
11
16
  *
12
- * @see Numeric
13
- * @see MinusTwoNumber
14
- * @see MinusTwoBigInt
17
+ * @see TwoNumber
18
+ * @see TwoBigInt
15
19
  */
16
20
  export type Two<T extends | 2 | 2n = | 2 | 2n, > = T
17
21
  /**
@@ -33,9 +37,6 @@ export type TwoBigInt<T extends 2n = 2n, > = T
33
37
  * A type-alias for <b>2</b> (as a {@link Number} or a {@link BigInt})
34
38
  * in a {@link String} template
35
39
  *
36
- * @see Two
37
- * @see TwoNumber
38
- * @see TwoBigInt
39
40
  * @see Template
40
41
  * @see TemplateOrTwo
41
42
  * @see NumberTemplate
@@ -48,9 +49,6 @@ export type TwoTemplate<T extends | 2 | 2n = | 2 | 2n, > = `${T}`
48
49
  * A type-alias for <b>2</b> (as a {@link Number} or a {@link BigInt})
49
50
  * as a primitive or in a {@link String} template
50
51
  *
51
- * @see Two
52
- * @see TwoNumber
53
- * @see TwoBigInt
54
52
  * @see Template
55
53
  * @see TwoTemplate
56
54
  * @see TemplateOrTwoNumber
@@ -64,8 +62,6 @@ export type TemplateOrTwo<T extends | 2 | 2n = | 2 | 2n, > = | T | `${T}`
64
62
  * A type-alias for the {@link Number} <b>2</b>
65
63
  * as a primitive or in a {@link String} template
66
64
  *
67
- * @see Two
68
- * @see TwoNumber
69
65
  * @see Template
70
66
  * @see TwoTemplate
71
67
  * @see TemplateOrTwo
@@ -76,8 +72,6 @@ export type TemplateOrTwoNumber<T extends 2 = 2, > = | T | `${T}`
76
72
  * A type-alias for the {@link BigInt} <b>2</b>
77
73
  * as a primitive or in a {@link String} template
78
74
  *
79
- * @see Two
80
- * @see TwoBigInt
81
75
  * @see Template
82
76
  * @see TwoTemplate
83
77
  * @see TemplateOrTwo
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /** A type-alias for a {@link BigInt}
9
14
  * in a {@link String} template
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /**
9
14
  * A type-alias for a {@link Number}
package/src/numeric.ts CHANGED
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /** A type-alias for a {@link Number} or a {@link BigInt} as a primitive */
9
14
  export type Numeric<T extends | number | bigint = | number | bigint, > = T
@@ -12,7 +17,6 @@ export type Numeric<T extends | number | bigint = | number | bigint, > = T
12
17
  * A type-alias for a value ({@link Number} or {@link BigInt})
13
18
  * in a {@link String} template
14
19
  *
15
- * @see Numeric
16
20
  * @see Template
17
21
  * @see NumberTemplate
18
22
  * @see BigIntTemplate
@@ -23,7 +27,6 @@ export type NumericTemplate<T extends Numeric = Numeric, > = `${T}`
23
27
  * A type-alias for a value ({@link Number} or {@link BigInt})
24
28
  * as a primitive or in a {@link String} template
25
29
  *
26
- * @see Numeric
27
30
  * @see Template
28
31
  * @see TemplateOrNumber
29
32
  * @see TemplateOrBigInt
@@ -35,7 +38,6 @@ export type TemplateOrNumeric<T extends Numeric = Numeric, > = | T | `${T}`
35
38
  * A type-alias for a value ({@link Number} or {@link BigInt})
36
39
  * as a primitive or an object
37
40
  *
38
- * @see Numeric
39
41
  * @see NumberOrObject
40
42
  * @see BigIntOrObject
41
43
  * @see TemplateOrNumericOrObject
@@ -46,7 +48,6 @@ export type NumericOrObject<T extends Numeric = Numeric, > = | T | Number | BigI
46
48
  * A type-alias for a value ({@link Number} or {@link BigInt})
47
49
  * as a primitive, an object or in a {@link String} template
48
50
  *
49
- * @see Numeric
50
51
  * @see Template
51
52
  * @see TemplateOrNumberOrObject
52
53
  * @see TemplateOrBigIntOrObject
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /** A type-alias for the {@link Boolean} <b>true</b> as a {@link String} */
9
14
  export type TrueString = "true"
@@ -31,5 +36,9 @@ export type Comma = ','
31
36
  export type Point = '.'
32
37
  /** A type-alias for the "infinity" {@link String character} */
33
38
  export type InfinityString = '∞'
39
+ /** A type-alias for the word "infinity" {@link String} */
40
+ export type InfinityWordString = "Infinity"
41
+ /** A type-alias for the word "Invalid date" {@link String} */
42
+ export type InvalidDateString = "Invalid Date"
34
43
  /** A type-alias for the "suspension point" {@link String character} */
35
44
  export type SuspensionPoint = '…'
package/src/string.ts CHANGED
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  /**
9
14
  * A type-alias for a value
package/src/symbol.ts CHANGED
@@ -1,9 +1,14 @@
1
- /*******************************************************************************
2
- Copyright (c) 2023-2024. Jonathan Bédard ~ JóôòKiwi
3
-
4
- This project is free to use.
5
- All the right is reserved to the author of this project.
6
- ******************************************************************************/
1
+ //··························································
2
+ // Copyright (c) 2023-2025. Jonathan Bédard ~ JóôòKiwi
3
+ //
4
+ // This project is free to use.
5
+ // All the right is reserved to the author of this project.
6
+ // My projects:
7
+ // - https://github.com/joooKiwi/type
8
+ // - https://github.com/joooKiwi/lazy
9
+ // - https://github.com/joooKiwi/collection
10
+ // - https://github.com/joooKiwi/enumeration
11
+ //··························································
7
12
 
8
13
  import type {PossibleJavascriptSymbolName, PossibleTypescriptSymbolName} from "./string"
9
14