TwitterMetadata
The Twitter card.
The Twitter card.
Import#
ts
import type { TwitterMetadata } from "@shadow-js/dusk";
Signature#
ts
type TwitterMetadata =
| {
readonly card?: "summary" | "summary_large_image";
readonly site?: string;
readonly siteId?: string;
readonly creator?: string;
readonly creatorId?: string;
readonly title?: string;
readonly description?: string;
readonly images?: OpenGraphImageInput | readonly OpenGraphImageInput[];
}
| {
readonly card: "app";
readonly site?: string;
readonly siteId?: string;
readonly creator?: string;
readonly creatorId?: string;
readonly title?: string;
readonly description?: string;
readonly images?: OpenGraphImageInput | readonly OpenGraphImageInput[];
readonly app: TwitterAppCard;
}
| {
readonly card: "player";
readonly site?: string;
readonly siteId?: string;
readonly creator?: string;
readonly creatorId?: string;
readonly title?: string;
readonly description?: string;
readonly images?: OpenGraphImageInput | readonly OpenGraphImageInput[];
readonly player: TwitterPlayer | readonly TwitterPlayer[];
}