@domain-first/types 2.0.0 → 2.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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
- Type-safe Entities and Value Objects powered by Standard Schema.
8
+ Type-Safe Entities and Value Objects with Standard Schema Validation.
9
9
  </p>
10
10
 
11
11
  <p align="center">
package/dist/entity.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { StandardSchemaV1 } from '@standard-schema/spec';
2
2
  import { type DeepReadonly } from './utils';
3
- export declare const defineEntity: <IdSchema extends StandardSchemaV1, ModelSchema extends StandardSchemaV1>(idSchema: IdSchema, modelSchema: ModelSchema | ((isCurrentEntity: (target: unknown) => boolean) => ModelSchema)) => (abstract new (id: StandardSchemaV1.InferOutput<IdSchema>, model: StandardSchemaV1.InferOutput<ModelSchema>) => {
3
+ export declare const defineEntity: <IdSchema extends StandardSchemaV1, ModelSchema extends StandardSchemaV1>(idSchema: IdSchema, modelSchema: ModelSchema | ((isCurrentEntity: (target: unknown) => boolean) => ModelSchema)) => (abstract new (id: StandardSchemaV1.InferInput<IdSchema>, model: StandardSchemaV1.InferInput<ModelSchema>) => {
4
4
  get model(): DeepReadonly<StandardSchemaV1.InferOutput<ModelSchema>>;
5
5
  get id(): DeepReadonly<StandardSchemaV1.InferOutput<IdSchema>>;
6
6
  }) & {
@@ -1,6 +1,6 @@
1
1
  import type { StandardSchemaV1 } from '@standard-schema/spec';
2
2
  import { type DeepReadonly } from './utils';
3
- export declare const defineValueObject: <Schema extends StandardSchemaV1>(schema: Schema | ((isCurrentValueObject: (target: unknown) => boolean) => Schema)) => (abstract new (data: StandardSchemaV1.InferOutput<Schema>) => {
3
+ export declare const defineValueObject: <Schema extends StandardSchemaV1>(schema: Schema | ((isCurrentValueObject: (target: unknown) => boolean) => Schema)) => (abstract new (data: StandardSchemaV1.InferInput<Schema>) => {
4
4
  get model(): DeepReadonly<StandardSchemaV1.InferOutput<Schema>>;
5
5
  }) & {
6
6
  readonly schema: Schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain-first/types",
3
- "description": "Type-safe Entities and Value Objects powered by Standard Schema",
3
+ "description": "Type-Safe Entities and Value Objects with Standard Schema Validation",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "entity",
@@ -10,9 +10,12 @@
10
10
  "domain model",
11
11
  "domain-first",
12
12
  "ddd",
13
- "domain-driven"
13
+ "domain-driven",
14
+ "standard schema",
15
+ "zod",
16
+ "valibot"
14
17
  ],
15
- "version": "2.0.0",
18
+ "version": "2.0.2",
16
19
  "type": "module",
17
20
  "repository": {
18
21
  "type": "git",