1.6.2 • Published 6 years ago
@sibipro/models v1.6.2
frontend-models
Install the package:
npm i @sibipro/modelsImport 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
createUserfunction to create a user object with the default values
- includes