@saurabhthedev/medium-common
v1.0.3
Published
medium-common repository contains the common logic for typescript defination for my project that can utilize this infered types in frontend as well in backend independenly.
Downloads
12
Readme
medium-common
medium-common repository contains the common logic for typescript defination for my project that can utilize this infered types in frontend as well in backend independenly.
usage
In order to utilize the types install the package first via command in the right side.
import {signupInput, signinInput } from "@saurabhthedev/medium-common";
const {success} = signinInput.safeParse(body);
if(!success){
return res.status(411).json({message:"bad input"});
}
Keywords
Typescript