Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webbtc/webln-types

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webbtc/webln-types - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "@webbtc/webln-types",
"description": "Type definitions for WebLN",
"version": "1.0.7",
"version": "1.0.8",
"types": "types/index.d.ts",

@@ -6,0 +6,0 @@ "repository": {

@@ -15,5 +15,6 @@ # webln-types

2. Type definitions are now available for `window.webln` and by importing from `"@webbtc/webln-types"`
2. Import `"@webbtc/webln-types"`
```javascript
//import "@webbtc/webln-types"; // if you just want to use window.webln
import { GetInfoResponse } from "@webbtc/webln-types";

@@ -31,10 +32,4 @@ if (window.webln) {

_If you do not import any types from "@webbtc/webln-types" and just want to use window.webln, add the following directive somewhere in your codebase (e.g. the main/index.tsx file) to ensure the types still get consumed. (See the [Typescript docs](https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html#dependencies-on-global-libraries) for more information)_
```javascript
/// <reference types="@webbtc/webln-types" />
```
## Adding WebLN to your application
Read the [WebLN Guide](https://www.webln.guide/introduction/readme)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc