Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dacioromero/types-wm
- Owner: dacioromero
- License: mit
- Created: 2019-12-02T21:37:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-11T16:55:23.000Z (over 2 years ago)
- Last Synced: 2024-11-08T22:06:10.616Z (about 1 month ago)
- Topics: definition, dts, types, typescript, typescript-definitions, typings, web-monetization, webmonetization
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-web-monetization - types-wm - TypeScript definitions for Web Monetization ![](assets/small_icons/typescript.png) (Resources / Packages)
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-devor
$ 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'
```