Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dacioromero/types-wm

TypeScript definitions for Web Monetization
https://github.com/dacioromero/types-wm

definition dts types typescript typescript-definitions typings web-monetization webmonetization

Last synced: 29 days ago
JSON representation

TypeScript definitions for Web Monetization

Awesome Lists containing this project

README

        

# Web Monetization Types
TypeScript types for [Web Monetization](https://webmonetization.org).

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`.

```typescript
import 'types-wm'
```

or

```typescript
import { MonetizationState } from 'types-wm'
```