@bachman-dev/wanikani-api-types - v2.0.0
    Preparing search index...

    Type Alias RadicalCharacterImage

    RadicalCharacterImage: { url: string } & (
        | {
            content_type: "image/png";
            metadata: { color: string; dimensions: string; style_name: string };
        }
        | { content_type: "image/svg+xml"; metadata: { inline_styles: boolean } }
    )

    An image representing a radical subject.

    Type declaration

    • url: string

      The location of the image.

    • {
          content_type: "image/png";
          metadata: { color: string; dimensions: string; style_name: string };
      }
      • content_type: "image/png"

        The content type of the image.

      • metadata: { color: string; dimensions: string; style_name: string }

        Details about the image. Each content_type returns a uniquely structured object.

        • color: string

          Color of the asset in hexadecimal

        • dimensions: string

          Dimension of the asset in pixels

        • style_name: string

          A name descriptor

    • { content_type: "image/svg+xml"; metadata: { inline_styles: boolean } }
      • content_type: "image/svg+xml"

        The content type of the image.

      • metadata: { inline_styles: boolean }

        Details about the image. Each content_type returns a uniquely structured object.

        • inline_styles: boolean

          The SVG asset contains built-in CSS styling.