@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.
- package/dist/boolean (false).d.ts +1 -8
- package/dist/boolean (false).d.ts.map +1 -1
- package/dist/boolean (true).d.ts +0 -8
- package/dist/boolean (true).d.ts.map +1 -1
- package/dist/boolean.d.ts +0 -6
- package/dist/boolean.d.ts.map +1 -1
- package/dist/collection (array).d.ts +59 -0
- package/dist/collection (array).d.ts.map +1 -0
- package/dist/collection (map).d.ts +786 -0
- package/dist/collection (map).d.ts.map +1 -0
- package/dist/collection (mutable array).d.ts +59 -0
- package/dist/collection (mutable array).d.ts.map +1 -0
- package/dist/collection (mutable map).d.ts +786 -0
- package/dist/collection (mutable map).d.ts.map +1 -0
- package/dist/collection (mutable set).d.ts +59 -0
- package/dist/collection (mutable set).d.ts.map +1 -0
- package/dist/collection (set).d.ts +59 -0
- package/dist/collection (set).d.ts.map +1 -0
- package/dist/collection.d.ts +446 -0
- package/dist/collection.d.ts.map +1 -0
- package/dist/empty.d.ts +50 -14
- package/dist/empty.d.ts.map +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/mixed.d.ts +0 -6
- package/dist/mixed.d.ts.map +1 -1
- package/dist/nullable.d.ts +22 -6
- package/dist/nullable.d.ts.map +1 -1
- package/dist/numeric (-1).d.ts +0 -17
- package/dist/numeric (-1).d.ts.map +1 -1
- package/dist/numeric (0).d.ts +2 -19
- package/dist/numeric (0).d.ts.map +1 -1
- package/dist/numeric (1).d.ts +2 -19
- package/dist/numeric (1).d.ts.map +1 -1
- package/dist/numeric (2).d.ts +2 -19
- package/dist/numeric (2).d.ts.map +1 -1
- package/dist/numeric (bigint).d.ts +0 -6
- package/dist/numeric (bigint).d.ts.map +1 -1
- package/dist/numeric (number).d.ts +0 -6
- package/dist/numeric (number).d.ts.map +1 -1
- package/dist/numeric.d.ts +0 -10
- package/dist/numeric.d.ts.map +1 -1
- package/dist/string (individual).d.ts +4 -6
- package/dist/string (individual).d.ts.map +1 -1
- package/dist/string.d.ts +0 -6
- package/dist/string.d.ts.map +1 -1
- package/dist/symbol.d.ts +0 -6
- package/dist/symbol.d.ts.map +1 -1
- package/package.json +10 -7
- package/src/boolean (false).ts +12 -8
- package/src/boolean (true).ts +11 -8
- package/src/boolean.ts +11 -6
- package/src/collection (array).ts +74 -0
- package/src/collection (map).ts +838 -0
- package/src/collection (mutable array).ts +75 -0
- package/src/collection (mutable map).ts +838 -0
- package/src/collection (mutable set).ts +74 -0
- package/src/collection (set).ts +74 -0
- package/src/collection.ts +482 -0
- package/src/empty.ts +61 -14
- package/src/index.ts +18 -6
- package/src/mixed.ts +11 -6
- package/src/nullable.ts +37 -6
- package/src/numeric (-1).ts +11 -17
- package/src/numeric (0).ts +13 -19
- package/src/numeric (1).ts +13 -19
- package/src/numeric (2).ts +13 -19
- package/src/numeric (bigint).ts +11 -6
- package/src/numeric (number).ts +11 -6
- package/src/numeric.ts +11 -10
- package/src/string (individual).ts +15 -6
- package/src/string.ts +11 -6
- package/src/symbol.ts +11 -6
|
@@ -1,16 +1,9 @@
|
|
|
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
1
|
/** A type-alias for the {@link Boolean} <b>false</b> as a primitive */
|
|
8
2
|
export type False<T extends false = false> = T;
|
|
9
3
|
/**
|
|
10
4
|
* A type-alias for the {@link Boolean} <b>false</b>
|
|
11
5
|
* in a {@link String} template
|
|
12
6
|
*
|
|
13
|
-
* @see False
|
|
14
7
|
* @see Template
|
|
15
8
|
* @see BooleanTemplate
|
|
16
9
|
*/
|
|
@@ -19,8 +12,8 @@ export type FalseTemplate<T extends false = false> = `${T}`;
|
|
|
19
12
|
* A type-alias for the {@link Boolean} <b>false</b>
|
|
20
13
|
* as a primitive or in a {@link String} template
|
|
21
14
|
*
|
|
22
|
-
* @see False
|
|
23
15
|
* @see Template
|
|
16
|
+
* @see FalseTemplate
|
|
24
17
|
* @see FalseOrTemplateOrObject
|
|
25
18
|
* @see TemplateOrBoolean
|
|
26
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean (false).d.ts","sourceRoot":"","sources":["../src/boolean (false).ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean (false).d.ts","sourceRoot":"","sources":["../src/boolean (false).ts"],"names":[],"mappings":"AAYA,uEAAuE;AACvE,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAM,CAAC,CAAA;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAM,GAAG,CAAC,EAAE,CAAA;AAE7D;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAQ,CAAC,GAAG,GAAG,CAAC,EAAE,CAAA"}
|
package/dist/boolean (true).d.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
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
1
|
/** A type-alias for the {@link Boolean} <b>true</b> as a primitive */
|
|
8
2
|
export type True<T extends true = true> = T;
|
|
9
3
|
/**
|
|
10
4
|
* A type-alias for the {@link Boolean} <b>true</b>
|
|
11
5
|
* in a {@link String} template
|
|
12
6
|
*
|
|
13
|
-
* @see True
|
|
14
7
|
* @see Template
|
|
15
8
|
* @see BooleanTemplate
|
|
16
9
|
*/
|
|
@@ -19,7 +12,6 @@ export type TrueTemplate<T extends true = true> = `${T}`;
|
|
|
19
12
|
* A type-alias for the {@link Boolean} <b>true</b>
|
|
20
13
|
* in a {@link String} template
|
|
21
14
|
*
|
|
22
|
-
* @see True
|
|
23
15
|
* @see Template
|
|
24
16
|
* @see TrueTemplate
|
|
25
17
|
* @see TrueOrTemplateOrObject
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean (true).d.ts","sourceRoot":"","sources":["../src/boolean (true).ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean (true).d.ts","sourceRoot":"","sources":["../src/boolean (true).ts"],"names":[],"mappings":"AAYA,sEAAsE;AACtE,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAM,CAAC,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAM,GAAG,CAAC,EAAE,CAAA;AAE1D;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAQ,CAAC,GAAG,GAAG,CAAC,EAAE,CAAA"}
|
package/dist/boolean.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
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
1
|
/**
|
|
8
2
|
* A type-alias for a {@link Boolean}
|
|
9
3
|
* in a {@link String} template
|
package/dist/boolean.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../src/boolean.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../src/boolean.ts"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAM,GAAG,CAAC,EAAE,CAAA;AAEnE;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAQ,CAAC,GAAG,GAAG,CAAC,EAAE,CAAA;AAE3E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAQ,CAAC,GAAG,OAAO,CAAA;AAE1E;;;;;;;GAOG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAQ,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,OAAO,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Numeric } from "./numeric";
|
|
2
|
+
import type { JavascriptSymbol, TypescriptSymbol } from "./symbol";
|
|
3
|
+
/**
|
|
4
|
+
* A type-alias for an {@link ReadonlyArray Array} of {@link Boolean}
|
|
5
|
+
*
|
|
6
|
+
* @see import('collection').Array
|
|
7
|
+
*/
|
|
8
|
+
export type BooleanArray<T extends boolean = boolean> = readonly T[];
|
|
9
|
+
/**
|
|
10
|
+
* A type-alias for an {@link ReadonlyArray Array} of {@link Number} or {@link BigInt}
|
|
11
|
+
*
|
|
12
|
+
* @see import('collection').Array
|
|
13
|
+
* @see NumberArray
|
|
14
|
+
* @see BigIntArray
|
|
15
|
+
*/
|
|
16
|
+
export type NumericArray<T extends Numeric = Numeric> = readonly T[];
|
|
17
|
+
/**
|
|
18
|
+
* A type-alias for an {@link ReadonlyArray Array} of {@link Number}
|
|
19
|
+
*
|
|
20
|
+
* @see import('collection').Array
|
|
21
|
+
* @see NumericArray
|
|
22
|
+
*/
|
|
23
|
+
export type NumberArray<T extends number = number> = readonly T[];
|
|
24
|
+
/**
|
|
25
|
+
* A type-alias for an {@link ReadonlyArray Array} of {@link BigInt}
|
|
26
|
+
*
|
|
27
|
+
* @see import('collection').Array
|
|
28
|
+
* @see NumericArray
|
|
29
|
+
*/
|
|
30
|
+
export type BigIntArray<T extends bigint = bigint> = readonly T[];
|
|
31
|
+
/**
|
|
32
|
+
* A type-alias for an {@link ReadonlyArray Array} of {@link String}
|
|
33
|
+
*
|
|
34
|
+
* @see import('collection').Array
|
|
35
|
+
*/
|
|
36
|
+
export type StringArray<T extends string = string> = readonly T[];
|
|
37
|
+
/**
|
|
38
|
+
* A type-alias for an {@link ReadonlyArray Array} of {@link Symbol}
|
|
39
|
+
*
|
|
40
|
+
* @see import('collection').Array
|
|
41
|
+
* @see JavascriptSymbolArray
|
|
42
|
+
* @see TypescriptSymbolArray
|
|
43
|
+
*/
|
|
44
|
+
export type SymbolArray<T extends symbol = symbol> = readonly T[];
|
|
45
|
+
/**
|
|
46
|
+
* A type-alias for an {@link ReadonlyArray Array} of the official Javascript {@link Symbol}
|
|
47
|
+
*
|
|
48
|
+
* @see import('collection').Array
|
|
49
|
+
* @see SymbolArray
|
|
50
|
+
*/
|
|
51
|
+
export type JavascriptSymbolArray<T extends JavascriptSymbol = JavascriptSymbol> = readonly T[];
|
|
52
|
+
/**
|
|
53
|
+
* A type-alias for an {@link ReadonlyArray Array} of the official Typescript {@link Symbol}
|
|
54
|
+
*
|
|
55
|
+
* @see import('collection').Array
|
|
56
|
+
* @see SymbolArray
|
|
57
|
+
*/
|
|
58
|
+
export type TypescriptSymbolArray<T extends TypescriptSymbol = TypescriptSymbol> = readonly T[];
|
|
59
|
+
//# sourceMappingURL=collection%20(array).d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection (array).d.ts","sourceRoot":"","sources":["../src/collection (array).ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAiC,WAAW,CAAA;AACjE,OAAO,KAAK,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAA;AAEhE;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAM,SAAS,CAAC,EAAE,CAAA;AAEtE;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAM,SAAS,CAAC,EAAE,CAAA;AACtE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAM,SAAS,CAAC,EAAE,CAAA;AACnE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAM,SAAS,CAAC,EAAE,CAAA;AAEnE;;;;GAIG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAM,SAAS,CAAC,EAAE,CAAA;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAM,SAAS,CAAC,EAAE,CAAA;AACnE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,IAAM,SAAS,CAAC,EAAE,CAAA;AACjG;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,IAAM,SAAS,CAAC,EAAE,CAAA"}
|