2.1.0 • Published 2 years ago

bs-commerce-models v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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)
2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago