Skip to content

Commit abc9f3a

Browse files
committed
chore: wip
1 parent fdff227 commit abc9f3a

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

.stacks/core/validation/src/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
import { z as validate, z } from 'zod'
22

3-
export { validate, z }
3+
enum Type {
4+
String = 'String',
5+
Number = 'Number',
6+
Boolean = 'Boolean',
7+
Date = 'Date',
8+
Object = 'Object',
9+
Array = 'Array',
10+
}
11+
12+
export { validate, z, Type }

app/models/User.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
import { faker } from 'stacks/core/faker/src' // stacks/faker or @stacksjs/faker
2-
import { validate } from 'stacks/core/validation/src' // stacks/validate or @stacksjs/validate
2+
import { Type, validate } from 'stacks/core/validation/src' // stacks/validate or @stacksjs/validate
33
import type { Model } from 'stacks/core/types/src' // stacks/types or @stacksjs/types
44

5-
enum Type {
6-
String = 'String',
7-
Number = 'Number',
8-
Boolean = 'Boolean',
9-
Date = 'Date',
10-
Object = 'Object',
11-
Array = 'Array',
12-
}
13-
145
export default <Model> {
156
name: 'User',
167
table: 'users',

pnpm-lock.yaml

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)