0.5.2 • Published 6 months ago

@types/multicoin-address-validator v0.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for multicoin-address-validator 0.5
// Project: https://github.com/christsim/multicoin-address-validator
// Definitions by: Kyle McLean <https://github.com/kylemclean>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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 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?: string;
}

Additional Details

  • Last updated: Wed, 30 Jun 2021 22:31:24 GMT
  • Dependencies: none
  • Global values: WAValidator

Credits

These definitions were written by Kyle McLean.