Skip to content

This package is built for BS-Commerce E-Commerce Application 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.

Notifications You must be signed in to change notification settings

BrainStation-23/bs-commerce-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@bs-commerce/models

npm (scoped) npm bundle size (minified)

npm

This package is built for BS-Commerce E-Commerce Application 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)

License

MIT License

About

This package is built for BS-Commerce E-Commerce Application 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published