0.1.15 • Published 7 months ago
@m-oss/types v0.1.15
@m-oss/types
Shared TypeScript types and validation schemas for DocPille frontend and backend.
Installation
npm install @m-oss/typesUsage
import { User, Doctor, Patient, loginSchema } from '@m-oss/types'
// Use types
const user: User = {
id: '1',
firstName: 'John',
lastName: 'Doe',
// ...
}
// Use validation schemas
const result = loginSchema.safeParse({
email: 'john@example.com',
password: 'password123',
})Development
- Clone the repository
- Install dependencies:
npm install - Build:
npm run build
Publishing
- Update version in
package.json - Run
npm publish
License
MIT