Skip to content

Ngx meta.twittercardsite

Home > @davidlj95/ngx-meta > TwitterCardSite

TwitterCardSite type

@username or Twitter ID of the author of the website.

Either TwitterCardSiteUsername or TwitterCardSiteId is required.

Used in TwitterCard.site with type TwitterCardSite

Signature:

export type TwitterCardSite = TwitterCardSiteUsername | TwitterCardSiteId | (TwitterCardSiteUsername & TwitterCardSiteId);
References: TwitterCardSiteUsername, TwitterCardSiteId

Remarks

Provider:

TWITTER_CARD_SITE_METADATA_PROVIDER

See also:

Example

Providing both the @username and id. Just one of them is enough though.

const twitterCardSite: TwitterCardSite = {
   username: '@example',
   id: 16542877,
}