Socket
Socket
Sign inDemoInstall

@webbtc/webln-types

Package Overview
Dependencies
Maintainers
2
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.9 to 1.0.10

2

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

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

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

2. Import `"@webbtc/webln-types"`
2. Create `webln-types.d.ts` in your `src` directory with the following contents to ensure the types are picked up by the Typescript compiler:
```javascript
//import "@webbtc/webln-types"; // if you just want to use window.webln
/// <reference types="@webbtc/webln-types" />
```
3. Import types from `"@webbtc/webln-types"`
```javascript
import { GetInfoResponse } from "@webbtc/webln-types";

@@ -21,0 +26,0 @@ if (window.webln) {

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