@domain-first/types 1.0.5 → 1.0.6
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 +1 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,11 +42,7 @@ class UserId extends defineValueObject(
|
|
|
42
42
|
|
|
43
43
|
class User extends defineEntity(
|
|
44
44
|
// id schema
|
|
45
|
-
z.
|
|
46
|
-
// every Entity and Value Object has a static `is` method
|
|
47
|
-
// for type-safe instance checks
|
|
48
|
-
UserId.is,
|
|
49
|
-
),
|
|
45
|
+
z.instanceof(UserId),
|
|
50
46
|
// model schema
|
|
51
47
|
z.object({ name: z.string().nonempty() }),
|
|
52
48
|
) {}
|