@vini-wine/core-dtos
TypeScript icon, indicating that this package has built-in type declarations

1.0.25 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @vini-wine/core-dtos

Weekly Downloads

59

Version

1.0.25

License

ISC

Unpacked Size

8.5 kB

Total Files

8

Last publish

Collaborators

  • jocka
  • admin-vini-wine