@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.
@@ -55,17 +55,19 @@ export type KeyOfType<T, U> = {
55
55
  *
56
56
  * @example
57
57
  * type BigType = "penus" | "penii";
58
- * let x: BigType = "penus";
59
- * switch (x) {
60
- * case "penus":
61
- * // handle penus
62
- * break;
63
- * case "penii":
64
- * // handle penii
65
- * break;
66
- * default:
67
- * unreachable(x); // This will not compile if the switch is not exhaustive.
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
- * let x: BigType = "penus";
27
- * switch (x) {
28
- * case "penus":
29
- * // handle penus
30
- * break;
31
- * case "penii":
32
- * // handle penii
33
- * break;
34
- * default:
35
- * unreachable(x); // This will not compile if the switch is not exhaustive.
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
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAyD5B;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,KAAK,CAAC;AACf,CAAC;AAFD,kCAEC"}
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"}
@@ -55,17 +55,19 @@ export type KeyOfType<T, U> = {
55
55
  *
56
56
  * @example
57
57
  * type BigType = "penus" | "penii";
58
- * let x: BigType = "penus";
59
- * switch (x) {
60
- * case "penus":
61
- * // handle penus
62
- * break;
63
- * case "penii":
64
- * // handle penii
65
- * break;
66
- * default:
67
- * unreachable(x); // This will not compile if the switch is not exhaustive.
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
- * let x: BigType = "penus";
10
- * switch (x) {
11
- * case "penus":
12
- * // handle penus
13
- * break;
14
- * case "penii":
15
- * // handle penii
16
- * break;
17
- * default:
18
- * unreachable(x); // This will not compile if the switch is not exhaustive.
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
  */
@@ -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;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,KAAK,CAAC;AACf,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infra-blocks/types",
3
- "version": "0.8.0-alpha.0",
3
+ "version": "0.8.0",
4
4
  "description": "Typescript types utility package.",
5
5
  "keywords": [
6
6
  "type",