Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

incart-public-events

muze-innovation34ISC0.0.24TypeScript support: included

inCart's Public Event definition in typescript

incart

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!