drimion 0.1.10 → 0.1.12
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/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Aggregate } from "{{importAlias}}";
|
|
1
|
+
import { Aggregate, validator as v } from "{{importAlias}}";
|
|
2
2
|
|
|
3
3
|
interface {{className}}Props {
|
|
4
4
|
// define props
|
|
@@ -16,7 +16,7 @@ export class {{className}} extends Aggregate<{{className}}Props> {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
public static override isValidProps(props: {{className}}Props): boolean {
|
|
19
|
-
// use
|
|
19
|
+
// use validator utils or your own library
|
|
20
20
|
throw new Error("Method not implemented")
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity } from "{{importAlias}}";
|
|
1
|
+
import { Entity, validator as v } from "{{importAlias}}";
|
|
2
2
|
|
|
3
3
|
interface {{className}}Props {
|
|
4
4
|
// define props
|
|
@@ -10,7 +10,7 @@ export class {{className}} extends Entity<{{className}}Props> {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
public static override isValidProps(props: {{className}}Props): boolean {
|
|
13
|
-
// use
|
|
13
|
+
// use validator utils or your own library
|
|
14
14
|
throw new Error("Method not implemented")
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValueObject } from "{{importAlias}}";
|
|
1
|
+
import { ValueObject, validator as v } from "{{importAlias}}";
|
|
2
2
|
|
|
3
3
|
interface {{className}}Props {
|
|
4
4
|
// define props
|
|
@@ -10,7 +10,7 @@ export class {{className}} extends ValueObject<{{className}}Props> {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
public static override isValidProps(props: {{className}}Props): boolean {
|
|
13
|
-
// use
|
|
13
|
+
// use validator utils or your own library
|
|
14
14
|
throw new Error("Method not implemented")
|
|
15
15
|
}
|
|
16
16
|
}
|