Skip to content

Ngx meta.twittercardcreator

Home > @davidlj95/ngx-meta > TwitterCardCreator

TwitterCardCreator type

@username or Twitter ID of the content creator.

Used in TwitterCard.creator with type TwitterCardCreator

Signature:

export type TwitterCardCreator = TwitterCardCreatorUsername | TwitterCardCreatorId | (TwitterCardCreatorUsername & TwitterCardCreatorId);
References: TwitterCardCreatorUsername, TwitterCardCreatorId

Remarks

Provider:

TWITTER_CARD_CREATOR_METADATA_PROVIDER

See also:

Example

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

const twitterCardCreator: TwitterCardCreator = {
   username: '@example',
   id: 16542877,
}