@vini-wine/mapped-external-1-core-models
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@vini-wine/mapped-external-1-core-models

This package provides core models related to the mapped-external-1 api for the Vini frontend, designed to support TypeScript. It includes all frontend models related to the mapped-external-1 api 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/mapped-external-1-core-models
# Using yarn
yarn add @vini-wine/mapped-external-1-core-models

Usage

Importing Models in TypeScript

In your TypeScript files, you can import the models from the package as needed. Here's an example:

import {
    FirstModel,
    SecondModel,
    ThirdModel,
    // ... other enums
} from "@vini-wine/mapped-external-1-core-models";

Usage in Your Application

Once you have imported the models into your project, you can use them as needed. Here's an example of how to use the models in your application:

import {
    FirstModel,
    SecondModel,
    ThirdModel,
    // ... other enums
} from "@vini-wine/mapped-external-1-core-models";

// Use the enums in your application logic
const obj: FirstModel = {
    property1: '',
    // ... other properties
};

// ... more examples based on your specific enums

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.

Package Sidebar

Install

npm i @vini-wine/mapped-external-1-core-models

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

18.1 kB

Total Files

8

Last publish

Collaborators

  • jocka
  • admin-vini-wine