@types/americanexpress__react-seo
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

Installation

npm install --save @types/americanexpress__react-seo

Summary

This package contains type definitions for @americanexpress/react-seo (https://github.com/americanexpress/react-seo).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/americanexpress__react-seo.

index.d.ts

import { JSX } from "react";
export interface Media {
    src: string;
    secureUrl?: string;
    type?: string;
    width?: number;
    height?: number;
    alt?: string;
}
export interface Audio {
    src: string;
    secureUrl?: string;
    type?: string;
}
export interface OpenGraph {
    type?: string;
    url?: string;
    title?: string;
    description?: string;
    determiner?: string;
    locale?: string;
    localeAlternate?: string;
    siteName?: string;
    image?: Media;
    video?: Media;
    audio?: Audio;
}
export interface TwitterImage {
    src: string;
    alt: string;
}
export interface TwitterDevice {
    id?: string;
    url: string;
    name?: string;
}
export interface TwitterApp {
    country?: string;
    iphone?: TwitterDevice;
    ipad?: TwitterDevice;
    googlePlay?: TwitterDevice;
}
export interface TwitterPlayer {
    src: string;
    width?: number;
    height?: number;
}
export interface TwitterCard {
    card?: string;
    title?: string;
    description?: string;
    image?: TwitterImage;
    site?: string;
    siteId?: string;
    creator?: string;
    creatorId?: string;
    app?: TwitterApp;
    player?: TwitterPlayer;
}

export interface SEOProps {
    title: string;
    description: string;
    canonical?: string;
    image?: Media;
    video?: Media;
    openGraph?: OpenGraph;
    twitterCard?: TwitterCard;
    keywords?: string[];
    locale?: string;
    meta?: object[];
    siteUrl: string;
}

declare function SEO(props: SEOProps): JSX.Element;

export default SEO;

Additional Details

  • Last updated: Wed, 06 Dec 2023 06:08:17 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Zenoo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/americanexpress__react-seo

Weekly Downloads

38

Version

1.4.3

License

MIT

Unpacked Size

5.81 kB

Total Files

5

Last publish

Collaborators

  • types