@bemedev/typings 0.0.1 → 0.0.2

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 (2) hide show
  1. package/README.md +29 -26
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,11 +2,9 @@
2
2
 
3
3
  Typings by variables
4
4
 
5
- <br/>
6
-
7
5
  ## Usage
8
6
 
9
- ```typescript
7
+ ```ts
10
8
  import { transform } from '@bemedev/typings';
11
9
 
12
10
  const result = transform(({ array, maybe, intersection }) => ({
@@ -29,36 +27,41 @@ const result = transform(({ array, maybe, intersection }) => ({
29
27
  ),
30
28
  ),
31
29
  }));
30
+
31
+ expectTypeOf(result).toEqualTypeOf<{
32
+ nodes?: Array<{
33
+ position: { x: number; y: number };
34
+ data: { label?: string; content: string };
35
+ input: boolean;
36
+ id: string;
37
+ }>;
38
+ }>();
32
39
  ```
33
40
 
34
41
  <br/>
35
42
 
36
- ## Licence
37
-
38
- MIT
39
-
40
- ## CHANGE_LOG
43
+ ## Available Helpers
44
+
45
+ - `any`: Any type
46
+ - `array`: Array of types
47
+ - `custom`: Custom type
48
+ - `intersection`: Intersection of types
49
+ - `litterals`: Literal types
50
+ - `maybe`: Optional types
51
+ - `partial`: Partial types
52
+ - `record`: Record types
53
+ - `soa`: Single or Array types
54
+ - `sv`: State Value
55
+ - `tuple`: Tuple types
56
+ - `union`: Union types
41
57
 
42
- <details>
43
-
44
- <summary>
45
- ...
46
- </summary>
47
-
48
- ### Version [0.0.1] --> 29/12/2025 => 11:12
58
+ <br/>
49
59
 
50
- - ✨ Première version de la bibliothèque
51
- - Add `transform` core logic
52
- - Add type helpers (`any`, `array`, `custom`, `intersection`, `litterals`,
53
- `maybe`, `partial`, `record`, `soa`, `sv`, `tuple`, `union`)
54
- - Add `expandFn` utility
55
- - Add comprehensive tests for `transform`
56
- - Update project configuration
57
- - <u>Test coverage **_100%_**</u>
60
+ ## Licence
58
61
 
59
- </details>
62
+ MIT
60
63
 
61
- <br/>
64
+ ## [CHANGE_LOG](CHANGE_LOG.md)
62
65
 
63
66
  ## Auteur
64
67
 
@@ -72,4 +75,4 @@ chlbri (bri_lvi@icloud.com)
72
75
 
73
76
  ## Liens
74
77
 
75
- - [Documentation](https://github.com/chlbri/new-package)
78
+ - [Documentation](https://github.com/chlbri/typings)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bemedev/typings",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Typings by variables",
5
5
  "author": {
6
6
  "email": "bri_lvi@icloud.com",