@webbtc/webln-types
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"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) { |
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
5323
39