Wildcards: ((this, key) => readonly [string, ...string[]])

Type declaration

    • (this, key): readonly [string, ...string[]]
    • A signature of function that extracts all wildcards the given content negotiation key matches.

      Parameters

      • this: void
      • key: string

        Source key.

      Returns readonly [string, ...string[]]

      All wildcards the key matches, starting from the most specific one (the key itself) and ending with the most generic one (i.e. a match-all wildcard).

Generated using TypeDoc