@types/bip21
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/bip21

Summary

This package contains type definitions for bip21 (https://github.com/bitcoinjs/bip21).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bip21.

index.d.ts

type Options =
    | {
        amount?: number;
    }
    | { [key: string]: string };

declare namespace bip21 {
    export function decode(uri: string, urnScheme?: string): { address: string; options: Options };
    export function encode(address: string, options?: Options, urnScheme?: string): string;
}

export = bip21;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Stefan Huber.

/@types/bip21/

    Package Sidebar

    Install

    npm i @types/bip21

    Weekly Downloads

    1,043

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    3.16 kB

    Total Files

    5

    Last publish

    Collaborators

    • types