incart-public-events
TypeScript icon, indicating that this package has built-in type declarations

0.0.24 • Public • Published

incart-public-events

Using types with inCart project

To use our types. Simply import us as your depdendcies like so

yarn add incart-public-events

This will allow you to:

import type { InCartPublicEvents } from 'incart-public-events'

const body: InCartPublicEvents = request.body
// Do your events handling with benefits of typings!

Contribution

To declare your types. Update index.ts with your interface as you would normally did in TS project.

Make sure you export them.

Run

yarn build

Then publish it!

Readme

Keywords

Package Sidebar

Install

npm i incart-public-events

Weekly Downloads

11

Version

0.0.24

License

ISC

Unpacked Size

20.3 kB

Total Files

13

Last publish

Collaborators

  • muze
  • peatiscoding