@vini-wine/core-dtos
v1.0.25
Published
Core package for Vini frontend DTOs.
Downloads
122
Readme
@vini-wine/core-dtos
This package provides core DTOs for the Vini frontend, designed to support TypeScript. It includes various DTOs essential for the Vini frontend.
Installation
To install the package in your project, you can use npm or yarn. In your project directory, run one of the following commands:
# Using npm
npm install @vini-wine/core-dtos
# Using yarn
yarn add @vini-wine/core-dtos
Usage
Importing DTOs in TypeScript
In your TypeScript files, you can import the DTOs from the package as needed. Here's an example:
import {
FirstDto,
SecondDto,
// ... other dtos
} from "@vini-wine/core-dtos";
Usage in Your Application
Once you have imported the DTOs into your project, you can use them as needed. Here's an example of how to use the DTOs in your application:
import {
FirstDto,
SecondDto,
// ... other dtos
} from "@vini-wine/core-dtos";
// Use the dtos in your application logic
const myDto: FirstDto = {
property1: ""
};
// ... more examples based on your specific dtos
Scripts
The package includes the following npm scripts:
- 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.