incart-public-events
v0.0.24
Published
inCart's Public Event definition in typescript
Downloads
98
Readme
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!