@sibipro/models
v1.6.2
Published
Models and types for Sibi-specific data models
Downloads
6
Keywords
Readme
frontend-models
Install the package:
npm i @sibipro/models
Import the Typescript interface:
import { UserModel } from '@sibipro/models';
interface Props {
currentUser: UserModel;
}
function UserComponent(props: Props) {
...
}
Available models
- Company
- CompanyVendor
- Manufacturer
- Office
- Order
- Property
- Truck
- User
- includes
createUser
function to create a user object with the default values
- includes