@webbtc/webln-types
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5029
34