@infra-blocks/types 0.8.0-alpha.0 → 0.8.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/lib/cjs/index.d.ts +12 -10
- package/lib/cjs/index.js +12 -10
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +12 -10
- package/lib/esm/index.js +12 -10
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cjs/index.d.ts
CHANGED
|
@@ -55,17 +55,19 @@ export type KeyOfType<T, U> = {
|
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* type BigType = "penus" | "penii";
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
58
|
+
* function doStuff(x: BigType) {
|
|
59
|
+
* switch (x) {
|
|
60
|
+
* case "penus":
|
|
61
|
+
* // Do some sheet.
|
|
62
|
+
* break;
|
|
63
|
+
* case "penii":
|
|
64
|
+
* // Do some other sheet.
|
|
65
|
+
* break;
|
|
66
|
+
* default:
|
|
67
|
+
* unreachable(x); // This will not compile if the switch is not exhaustive.
|
|
68
|
+
* }
|
|
68
69
|
* }
|
|
70
|
+
* doStuff("penus");
|
|
69
71
|
*
|
|
70
72
|
* @param value - The value to validate against never.
|
|
71
73
|
*/
|
package/lib/cjs/index.js
CHANGED
|
@@ -23,17 +23,19 @@ __exportStar(require("./events.js"), exports);
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* type BigType = "penus" | "penii";
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
26
|
+
* function doStuff(x: BigType) {
|
|
27
|
+
* switch (x) {
|
|
28
|
+
* case "penus":
|
|
29
|
+
* // Do some sheet.
|
|
30
|
+
* break;
|
|
31
|
+
* case "penii":
|
|
32
|
+
* // Do some other sheet.
|
|
33
|
+
* break;
|
|
34
|
+
* default:
|
|
35
|
+
* unreachable(x); // This will not compile if the switch is not exhaustive.
|
|
36
|
+
* }
|
|
36
37
|
* }
|
|
38
|
+
* doStuff("penus");
|
|
37
39
|
*
|
|
38
40
|
* @param value - The value to validate against never.
|
|
39
41
|
*/
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAyD5B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAyD5B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,KAAK,CAAC;AACf,CAAC;AAFD,kCAEC"}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -55,17 +55,19 @@ export type KeyOfType<T, U> = {
|
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* type BigType = "penus" | "penii";
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
58
|
+
* function doStuff(x: BigType) {
|
|
59
|
+
* switch (x) {
|
|
60
|
+
* case "penus":
|
|
61
|
+
* // Do some sheet.
|
|
62
|
+
* break;
|
|
63
|
+
* case "penii":
|
|
64
|
+
* // Do some other sheet.
|
|
65
|
+
* break;
|
|
66
|
+
* default:
|
|
67
|
+
* unreachable(x); // This will not compile if the switch is not exhaustive.
|
|
68
|
+
* }
|
|
68
69
|
* }
|
|
70
|
+
* doStuff("penus");
|
|
69
71
|
*
|
|
70
72
|
* @param value - The value to validate against never.
|
|
71
73
|
*/
|
package/lib/esm/index.js
CHANGED
|
@@ -6,17 +6,19 @@ export * from "./events.js";
|
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* type BigType = "penus" | "penii";
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
9
|
+
* function doStuff(x: BigType) {
|
|
10
|
+
* switch (x) {
|
|
11
|
+
* case "penus":
|
|
12
|
+
* // Do some sheet.
|
|
13
|
+
* break;
|
|
14
|
+
* case "penii":
|
|
15
|
+
* // Do some other sheet.
|
|
16
|
+
* break;
|
|
17
|
+
* default:
|
|
18
|
+
* unreachable(x); // This will not compile if the switch is not exhaustive.
|
|
19
|
+
* }
|
|
19
20
|
* }
|
|
21
|
+
* doStuff("penus");
|
|
20
22
|
*
|
|
21
23
|
* @param value - The value to validate against never.
|
|
22
24
|
*/
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAyD5B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAyD5B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,KAAK,CAAC;AACf,CAAC"}
|