mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
feat: mongoose integration
This commit is contained in:
1
packages/server/types/index.ts
Normal file
1
packages/server/types/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './user';
|
||||
3
packages/server/types/primitives.ts
Normal file
3
packages/server/types/primitives.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { type z } from 'zod';
|
||||
|
||||
export type StringInput = string | z.ZodString | { type: StringConstructor; [key: string]: any };
|
||||
7
packages/server/types/user.ts
Normal file
7
packages/server/types/user.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { type StringInput } from './primitives';
|
||||
|
||||
export interface UserType {
|
||||
email: StringInput;
|
||||
name: StringInput;
|
||||
password: StringInput;
|
||||
}
|
||||
Reference in New Issue
Block a user