TypeScript types for Web Monetization.
Similar types will hopefully be added to lib.dom.d.ts if and when Web Monetization catches on.
As I am no longer an employee of Coil, this repo will likely no longer be maintained. If you'd like to maintain this repo please leave an issue.
$ npm install types-wm --save-dev
or
$ yarn add types-wm --dev
Import for monetization to be added to document
.
import 'types-wm'
or
import { MonetizationState } from 'types-wm'