Skip to content

Commit

Permalink
common folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkar1713 committed Sep 6, 2024
1 parent f29dff7 commit 7c5494f
Show file tree
Hide file tree
Showing 59 changed files with 18,443 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src
48 changes: 48 additions & 0 deletions common/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { z } from "zod";
export declare const signupInput: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
password: string;
name: string;
}, {
email: string;
password: string;
name: string;
}>;
export type SignupType = z.infer<typeof signupInput>;
export declare const signinInput: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
}, "strip", z.ZodTypeAny, {
email: string;
password: string;
}, {
email: string;
password: string;
}>;
export type SigninType = z.infer<typeof signinInput>;
export declare const createPost: z.ZodObject<{
title: z.ZodString;
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
content: string;
}, {
title: string;
content: string;
}>;
export type CreatePost = z.infer<typeof createPost>;
export declare const updatePost: z.ZodObject<{
title: z.ZodOptional<z.ZodString>;
content: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title?: string | undefined;
content?: string | undefined;
}, {
title?: string | undefined;
content?: string | undefined;
}>;
export type UpdatePost = z.infer<typeof updatePost>;
21 changes: 21 additions & 0 deletions common/dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updatePost = exports.createPost = exports.signinInput = exports.signupInput = void 0;
const zod_1 = require("zod");
exports.signupInput = zod_1.z.object({
email: zod_1.z.string().email(),
password: zod_1.z.string().min(6),
name: zod_1.z.string(),
});
exports.signinInput = zod_1.z.object({
email: zod_1.z.string().email(),
password: zod_1.z.string().min(6),
});
exports.createPost = zod_1.z.object({
title: zod_1.z.string(),
content: zod_1.z.string(),
});
exports.updatePost = zod_1.z.object({
title: zod_1.z.string().optional(),
content: zod_1.z.string().optional(),
});
16 changes: 16 additions & 0 deletions common/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions common/node_modules/zod/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7c5494f

Please sign in to comment.