Skip to content

Commit

Permalink
🤖 Merge PR #69533 [@types/multicoin-address-validator] Improve types …
Browse files Browse the repository at this point in the history
…for networkType by @alishi973
  • Loading branch information
alishi973 committed May 14, 2024
1 parent 83a2d25 commit 43beba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/multicoin-address-validator/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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;
}
Expand All @@ -16,5 +16,5 @@ export interface Currency {
}

export interface ValidateOpts {
networkType?: string;
networkType?: NetworkType;
}

0 comments on commit 43beba3

Please sign in to comment.