Installation
npm install --save @types/multicoin-address-validator
Summary
This package contains type definitions for multicoin-address-validator (https://github.com/christsim/multicoin-address-validator).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/multicoin-address-validator.
index.d.ts
export as namespace WAValidator;
export function validate(address: string, currencyNameOrSymbol?: string, opts?: ValidateOpts | string): boolean;
export function getCurrencies(): Currency[];
export function findCurrency(symbol: string): Currency | null;
export type NetworkType = "prod" | "testnet" | "both" | "stagenet";
export interface Validator {
isValidAddress: (address: string, currency: Currency, opts: ValidateOpts) => boolean;
}
export interface Currency {
name: string;
symbol: string;
validator: Validator;
[key: string]: any;
}
export interface ValidateOpts {
networkType?: NetworkType;
}
Additional Details
- Last updated: Tue, 14 May 2024 1519 GMT
- Dependencies: none
Credits
These definitions were written by Kyle McLean.