diff --git a/types/twitter-text/index.d.ts b/types/twitter-text/index.d.ts index e12cfc59a9..accac12333 100644 --- a/types/twitter-text/index.d.ts +++ b/types/twitter-text/index.d.ts @@ -72,6 +72,8 @@ export interface AutoLinkOptions { htmlAttrs?: string; invisibleTagAttrs?: string; htmlEscapeNonEntities?: boolean; + targetBlank?: boolean; + suppressNoFollow?: boolean; urlEntities?: UrlEntity[]; } diff --git a/types/twitter-text/twitter-text-tests.ts b/types/twitter-text/twitter-text-tests.ts index 708bdcfcb1..c1cc0917e0 100644 --- a/types/twitter-text/twitter-text-tests.ts +++ b/types/twitter-text/twitter-text-tests.ts @@ -41,7 +41,7 @@ result = twitter.autoLink(text); result = twitter.autoLinkUsernamesOrLists(text); result = twitter.autoLinkHashtags(text); result = twitter.autoLinkCashtags(text); -result = twitter.autoLinkUrlsCustom(text); +result = twitter.autoLinkUrlsCustom(text, {targetBlank: true, suppressNoFollow: true}); const len: number = twitter.getTweetLength(text);