• Parses targets as, for example, generated by formatTarget back to a representation in attributes xlink:show and xlink:role.

    Parameters

    • target: string

      target to parse

    Returns Partial<Pick<Partial<Record<string, string>>, "role" | "show">>

    parsed result; possibly an empty object