@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
@@ -0,0 +1,70 @@
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
+ ******************************************************************************/
7
+
8
+ import type {Numeric} from "./numeric"
9
+ import type {JavascriptSymbol, TypescriptSymbol} from "./symbol"
10
+
11
+ /**
12
+ * A type-alias for an {@link Array MutableArray} of {@link Boolean}
13
+ *
14
+ * @see MutableArray
15
+ */
16
+ export type MutableBooleanArray<T extends boolean = boolean, > = readonly T[]
17
+
18
+ /**
19
+ * A type-alias for an {@link Array MutableArray} of {@link Number} or {@link BigInt}
20
+ *
21
+ * @see MutableArray
22
+ * @see MutableNumberArray
23
+ * @see MutableBigIntArray
24
+ */
25
+ export type MutableNumericArray<T extends Numeric = Numeric, > = readonly T[]
26
+ /**
27
+ * A type-alias for an {@link Array MutableArray} of {@link Number}
28
+ *
29
+ * @see MutableArray
30
+ * @see MutableNumericArray
31
+ */
32
+ export type MutableNumberArray<T extends number = number, > = readonly T[]
33
+ /**
34
+ * A type-alias for an {@link Array MutableArray} of {@link BigInt}
35
+ *
36
+ * @see MutableArray
37
+ * @see MutableNumericArray
38
+ */
39
+ export type MutableBigIntArray<T extends bigint = bigint, > = readonly T[]
40
+
41
+ /**
42
+ * A type-alias for an {@link Array MutableArray} of {@link String}
43
+ *
44
+ * @see MutableArray
45
+ */
46
+ export type MutableStringArray<T extends string = string, > = readonly T[]
47
+
48
+ /**
49
+ * A type-alias for an {@link Array MutableArray} of {@link Symbol}
50
+ *
51
+ * @see MutableArray
52
+ * @see MutableJavascriptSymbolArray
53
+ * @see MutableTypescriptSymbolArray
54
+ */
55
+ export type MutableSymbolArray<T extends symbol = symbol, > = readonly T[]
56
+ /**
57
+ * A type-alias for an {@link Array MutableArray} of the official Javascript {@link Symbol}
58
+ *
59
+ * @see MutableArray
60
+ * @see MutableSymbolArray
61
+ */
62
+ export type MutableJavascriptSymbolArray<T extends JavascriptSymbol = JavascriptSymbol, > = readonly T[]
63
+ /**
64
+ * A type-alias for an {@link Array MutableArray} of the official Typescript {@link Symbol}
65
+ *
66
+ * @see MutableArray
67
+ * @see MutableSymbolArray
68
+ */
69
+ export type MutableTypescriptSymbolArray<T extends TypescriptSymbol = TypescriptSymbol, > = readonly T[]
70
+