Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 610 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 610 Bytes

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.

Maintenance notice

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.

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'