bs-commerce-models
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

bs-commerce-models

npm (scoped) npm bundle size (minified)

This package is created to describing an object with properties, interfaces are also capable of describing function types. Typescript allows an interface to inherit from multiple interfaces. Use the extends keyword to implement inheritance among interfaces.

Install

$ npm install bs-commerce-models

Usage

// => Import types from bs-commerce-models in your desired ts file
import {CreateCustomerRequest} from 'bs-commerce-models'

// => Then use it for typescript verification
const customerDemo = <CreateCustomerRequest>{
    phone: "string",
    email: "string",
    otp: 1,
    name: "string",
    password: "string"
}

console.log(customerDemo)

Readme

Keywords

Package Sidebar

Install

npm i bs-commerce-models

Weekly Downloads

1

Version

2.1.0

License

ISC

Unpacked Size

114 kB

Total Files

308

Last publish

Collaborators

  • mdmostafa