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 .