Interface Matchable<U>

interface Matchable<U = string> {
    matches: (pattern: U) => boolean;
}

Type Parameters

  • U = string

Properties

Properties

matches: (pattern: U) => boolean

Returns true if the s matches this member.

Type declaration

    • (pattern: U): boolean
    • Parameters

      • pattern: U

      Returns boolean