medplan-types
v1.0.94
Published
Shared TypeScript types for web and mobile applications
Downloads
107
Readme
@sykehusprosjekt/types
Shared TypeScript type definitions for both web and mobile applications in the sykehusprosjekt.
Installation
# If you're using npm
npm install @sykehusprosjekt/types
# If you're using yarn
yarn add @sykehusprosjekt/typesUsage
Import the types in your web or mobile application:
import { User, Patient, ApiResponse } from "@sykehusprosjekt/types";
// Use the types in your code
const user: User = {
id: "123",
email: "[email protected]",
firstName: "John",
lastName: "Doe",
role: "DOCTOR",
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
};Development
Building the package
npm run buildPublishing a new version
- Update the version in package.json
- Build the package:
npm run build - Publish to npm:
npm publish
