Core package for Vini models related to the admin API.
This package provides core models related to the admin api for the Vini frontend, designed to support TypeScript. It includes all frontend models related to the admin api essential for the Vini frontend.
To install the package in your project, you can use npm or yarn. In your project directory, run one of the following commands:
``bash`Using npm
npm install @vini-wine/admin-core-models`bash`Using yarn
yarn add @vini-wine/admin-core-models
`typescript`
import {
FirstModel,
SecondModel,
ThirdModel,
// ... other enums
} from "@vini-wine/admin-core-models";
`typescript
import {
FirstModel,
SecondModel,
ThirdModel,
// ... other enums
} from "@vini-wine/admin-core-models";
// Use the enums in your application logic
const obj: FirstModel = {
property1: '',
// ... other properties
};
// ... more examples based on your specific enums
``
- build: Run tsup to build the project.
- test: Placeholder for running tests (not specified).
- lint: Run ESLint for linting with TypeScript support.
- format: Use Prettier to format code.