@vicin/phantom 1.0.1 → 1.0.4
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/README.md +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,14 @@
|
|
|
9
9
|
- [Features](#features)
|
|
10
10
|
- [Install](#install)
|
|
11
11
|
- [Core concepts](#core-concepts)
|
|
12
|
-
- [
|
|
12
|
+
- [Type constructs](#type-constructs)
|
|
13
|
+
- [Branding](#branding)
|
|
14
|
+
- [Identities with constraints](#identities-with-constraints)
|
|
15
|
+
- [Traits (additive capabilities)](#traits-additive-capabilities)
|
|
16
|
+
- [Transformations (Type pipe-like behavior)](#transformations-type-pipe-like-behavior)
|
|
17
|
+
- [Errors](#errors)
|
|
18
|
+
- [Symbols](#symbols)
|
|
19
|
+
- [Imports](#imports)
|
|
13
20
|
- [Chaining](#chaining)
|
|
14
21
|
- [Hot-path code ( truly type-only pattern )](#hot-path-code--truly-type-only-pattern-)
|
|
15
22
|
- [Debugging](#debugging)
|
|
@@ -116,7 +123,7 @@ More details of these properties will be discussed later.
|
|
|
116
123
|
|
|
117
124
|
---
|
|
118
125
|
|
|
119
|
-
##
|
|
126
|
+
## Type constructs
|
|
120
127
|
|
|
121
128
|
### Branding
|
|
122
129
|
|
|
@@ -843,8 +850,8 @@ function hash<V>(value: V) {
|
|
|
843
850
|
|
|
844
851
|
`Sigil` works seamlessly in conjunction with `Phantom`,use `Phantom` for nominal typing on primitives/objects (type-only metadata), and `Sigil` for classes. Together, they enable comprehensive domain modeling: e.g., a Phantom-branded `UserId` could be a property in a Sigil-branded `User` class, combining zero-runtime primitive safety with robust class-level checks.
|
|
845
852
|
|
|
846
|
-
- GitHub:
|
|
847
|
-
- NPM:
|
|
853
|
+
- **GitHub: [@sigil](https://github.com/ZiadTaha62/sigil)**
|
|
854
|
+
- **NPM: [@sigil](https://www.npmjs.com/package/@vicin/sigil)**
|
|
848
855
|
|
|
849
856
|
---
|
|
850
857
|
|
|
@@ -864,6 +871,6 @@ Distributed under the MIT License. See `LICENSE` for more information.
|
|
|
864
871
|
|
|
865
872
|
Built with ❤️ by **Ziad Taha**.
|
|
866
873
|
|
|
867
|
-
- GitHub: [@ZiadTaha62](https://github.com/ZiadTaha62)
|
|
868
|
-
- NPM: [@ziadtaha62](https://www.npmjs.com/~ziadtaha62)
|
|
869
|
-
- Vicin: [@vicin](https://www.npmjs.com/org/vicin)
|
|
874
|
+
- **GitHub: [@ZiadTaha62](https://github.com/ZiadTaha62)**
|
|
875
|
+
- **NPM: [@ziadtaha62](https://www.npmjs.com/~ziadtaha62)**
|
|
876
|
+
- **Vicin: [@vicin](https://www.npmjs.com/org/vicin)**
|