@harpreetsinghsandhu/common-app
v1.0.6
Published

Readme

Zod Types for User Authentication and Post Management
This npm library provides TypeScript types using Zod for user authentication and post management functionalities.
Installation
To install this library, you can use npm:
Usage
This library exports TypeScript types using Zod for common data structures related to user authentication and post management.
Sign Up Input
import { signUpInput, SignUpType } from "@your-package-name/zod-types";
// Usage example
const userData: SignUpType = {
email: "[email protected]",
password: "password",
name: "John Doe",
};Sign In Input
import { signinInput, SigninType } from "@your-package-name/zod-types";
// Usage example
const signInData: SigninType = {
email: "[email protected]",
password: "password",
};Create Post Input
import { createPostInput, CreatePostType } from "@your-package-name/zod-types";
// Usage example
const postData: CreatePostType = {
title: "New Post",
content: "This is the content of the new post.",
};Update Post Input
import { updatePostInput, UpdatePostType } from "@your-package-name/zod-types";
// Usage example
const updatedPostData: UpdatePostType = {
title: "Updated Post",
content: "This is the updated content of the post.",
};