• Fetches tags based on the provided type and optional starting character.

    Parameters

    • type: TagTypes

      The type of tags to fetch.

    • OptionalstartsWith: StartingCharacter

      Optional starting character to filter tags. Note: startsWith is required for non-language and non-type types.

    Returns Promise<Tag[]>

    • A promise that resolves to an array of tags.
    • Throws an error if the type is invalid.