types-wm

TypeScript definitions for Web Monetization

Usage no npm install needed!

<script type="module">
  import typesWm from 'https://cdn.skypack.dev/types-wm';
</script>

README

Web Monetization Types

TypeScript types for Web Monetization.

Similar types will hopefully be added to lib.dom.d.ts if and when Web Monetization catches on.

Install

$ npm install types-wm --save-dev

or

$ yarn add types-wm --dev

Usage

Import for monetization to be added to document.

import 'types-wm'

or

import { MonetizationState } from 'types-wm'