medium-common-vishal 1.0.0

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.
@@ -0,0 +1,23 @@
1
+ import z from "zod";
2
+ export declare const signupInput: z.ZodObject<{
3
+ username: z.ZodString;
4
+ password: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ }, z.z.core.$strip>;
7
+ export declare const signinInput: z.ZodObject<{
8
+ username: z.ZodString;
9
+ password: z.ZodString;
10
+ }, z.z.core.$strip>;
11
+ export declare const createPostInput: z.ZodObject<{
12
+ title: z.ZodString;
13
+ content: z.ZodString;
14
+ }, z.z.core.$strip>;
15
+ export declare const updatePostInput: z.ZodObject<{
16
+ id: z.ZodString;
17
+ title: z.ZodString;
18
+ content: z.ZodString;
19
+ }, z.z.core.$strip>;
20
+ export type SignupInput = z.infer<typeof signupInput>;
21
+ export type SigninInput = z.infer<typeof signinInput>;
22
+ export type CreatePostInput = z.infer<typeof createPostInput>;
23
+ export type UpdatePostInput = z.infer<typeof updatePostInput>;
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import z from "zod";
2
+ export const signupInput = z.object({
3
+ username: z.string().email(),
4
+ password: z.string().min(6),
5
+ name: z.string().optional()
6
+ });
7
+ export const signinInput = z.object({
8
+ username: z.string().email(),
9
+ password: z.string().min(6),
10
+ });
11
+ export const createPostInput = z.object({
12
+ title: z.string(),
13
+ content: z.string(),
14
+ });
15
+ export const updatePostInput = z.object({
16
+ id: z.string(),
17
+ title: z.string(),
18
+ content: z.string()
19
+ });
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "medium-common-vishal",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "module",
13
+ "dependencies": {
14
+ "zod": "^4.4.3"
15
+ }
16
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ "rootDir": "./src",
6
+ "outDir": "./dist",
7
+
8
+ // Environment Settings
9
+ // See also https://aka.ms/tsconfig/module
10
+ "module": "nodenext",
11
+ "target": "esnext",
12
+ "types": [],
13
+ // For nodejs:
14
+ // "lib": ["esnext"],
15
+ // "types": ["node"],
16
+ // and npm install -D @types/node
17
+
18
+ // Other Outputs
19
+ // "sourceMap": true,
20
+ "declaration": true,
21
+ // "declarationMap": true,
22
+
23
+ // Stricter Typechecking Options
24
+ "noUncheckedIndexedAccess": true,
25
+ "exactOptionalPropertyTypes": true,
26
+
27
+ // Style Options
28
+ // "noImplicitReturns": true,
29
+ // "noImplicitOverride": true,
30
+ // "noUnusedLocals": true,
31
+ // "noUnusedParameters": true,
32
+ // "noFallthroughCasesInSwitch": true,
33
+ // "noPropertyAccessFromIndexSignature": true,
34
+
35
+ // Recommended Options
36
+ "strict": true,
37
+ "jsx": "react-jsx",
38
+ "verbatimModuleSyntax": true,
39
+ "isolatedModules": true,
40
+ "noUncheckedSideEffectImports": true,
41
+ "moduleDetection": "force",
42
+ "skipLibCheck": true,
43
+
44
+ }
45
+ }
@@ -0,0 +1 @@
1
+ {"root":["./src/index.ts"],"version":"5.9.3"}