@tilokdutta2909/medium-common 1.0.0 → 1.0.1
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.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const signupInput: z.ZodObject<{
|
|
3
3
|
email: z.ZodString;
|
|
4
4
|
password: z.ZodString;
|
|
5
5
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -17,8 +17,8 @@ export declare const updateblogInput: z.ZodObject<{
|
|
|
17
17
|
content: z.ZodString;
|
|
18
18
|
id: z.ZodString;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
|
+
export type SignupInput = z.infer<typeof signupInput>;
|
|
20
21
|
export type SigninInput = z.infer<typeof signinInput>;
|
|
21
|
-
export type SignupInput = z.infer<typeof signinInput>;
|
|
22
22
|
export type CreateblogInput = z.infer<typeof createblogInput>;
|
|
23
|
-
export type UpdateblogInput = z.infer<typeof
|
|
23
|
+
export type UpdateblogInput = z.infer<typeof updateblogInput>;
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateblogInput = exports.createblogInput = exports.signinInput = exports.
|
|
3
|
+
exports.updateblogInput = exports.createblogInput = exports.signinInput = exports.signupInput = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.signupInput = zod_1.default.object({
|
|
6
6
|
email: zod_1.default.string().email(),
|
|
7
7
|
password: zod_1.default.string().min(6),
|
|
8
8
|
name: zod_1.default.string().optional()
|