@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.
Files changed (55) hide show
  1. package/dist/boolean (false).d.ts +1 -2
  2. package/dist/boolean (false).d.ts.map +1 -1
  3. package/dist/boolean (true).d.ts +0 -2
  4. package/dist/boolean (true).d.ts.map +1 -1
  5. package/dist/collection (array).d.ts +65 -0
  6. package/dist/collection (array).d.ts.map +1 -0
  7. package/dist/collection (map).d.ts +792 -0
  8. package/dist/collection (map).d.ts.map +1 -0
  9. package/dist/collection (mutable array).d.ts +65 -0
  10. package/dist/collection (mutable array).d.ts.map +1 -0
  11. package/dist/collection (mutable map).d.ts +792 -0
  12. package/dist/collection (mutable map).d.ts.map +1 -0
  13. package/dist/collection (mutable set).d.ts +65 -0
  14. package/dist/collection (mutable set).d.ts.map +1 -0
  15. package/dist/collection (set).d.ts +65 -0
  16. package/dist/collection (set).d.ts.map +1 -0
  17. package/dist/collection.d.ts +243 -0
  18. package/dist/collection.d.ts.map +1 -0
  19. package/dist/empty.d.ts +50 -8
  20. package/dist/empty.d.ts.map +1 -1
  21. package/dist/index.d.ts +7 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/nullable.d.ts +22 -0
  24. package/dist/nullable.d.ts.map +1 -1
  25. package/dist/numeric (-1).d.ts +0 -11
  26. package/dist/numeric (-1).d.ts.map +1 -1
  27. package/dist/numeric (0).d.ts +2 -13
  28. package/dist/numeric (0).d.ts.map +1 -1
  29. package/dist/numeric (1).d.ts +2 -13
  30. package/dist/numeric (1).d.ts.map +1 -1
  31. package/dist/numeric (2).d.ts +2 -13
  32. package/dist/numeric (2).d.ts.map +1 -1
  33. package/dist/numeric.d.ts +0 -4
  34. package/dist/numeric.d.ts.map +1 -1
  35. package/dist/string (individual).d.ts +4 -0
  36. package/dist/string (individual).d.ts.map +1 -1
  37. package/package.json +9 -6
  38. package/src/boolean (false).ts +1 -2
  39. package/src/boolean (true).ts +0 -2
  40. package/src/collection (array).ts +69 -0
  41. package/src/collection (map).ts +833 -0
  42. package/src/collection (mutable array).ts +70 -0
  43. package/src/collection (mutable map).ts +833 -0
  44. package/src/collection (mutable set).ts +69 -0
  45. package/src/collection (set).ts +69 -0
  46. package/src/collection.ts +246 -0
  47. package/src/empty.ts +50 -8
  48. package/src/index.ts +7 -0
  49. package/src/nullable.ts +26 -0
  50. package/src/numeric (-1).ts +0 -11
  51. package/src/numeric (0).ts +2 -13
  52. package/src/numeric (1).ts +2 -13
  53. package/src/numeric (2).ts +2 -13
  54. package/src/numeric.ts +0 -4
  55. 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 = '…'