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

1.0.3 • Public • Published

Installation

npm install --save @types/eth-url-parser

Summary

This package contains type definitions for eth-url-parser (https://github.com/brunobar79/eth-url-parser).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eth-url-parser.

index.d.ts

export interface ParseOutput {
    scheme: "ethereum";
    target_address: string;
    chain_id?: `${number}`;
    function_name?: string;
    prefix?: string;
    parameters?: Record<string, string>;
}

export interface BuildInput {
    prefix?: "pay" | null;
    target_address: string;
    chain_id?: `${number}` | null;
    function_name?: string | null;
    parameters?: Record<string, string> | null;
}

export function parse(url: string): ParseOutput;
export function build(input: BuildInput): string;

Additional Details

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

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/eth-url-parser

Weekly Downloads

4,982

Version

1.0.3

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types