A matcher accepts multiaddr components and either fails to match and returns false or returns a sublist of unmatched components

interface Matcher {
    pattern: string;
    match(parts): false | string[];
}

Properties

Methods

Properties

pattern: string

Methods

  • Parameters

    • parts: string[]

    Returns false | string[]