mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Merge pull request #15816 from mattlewis92/twitter-text-fixes
twitter-text: add missing auto link options
This commit is contained in:
Vendored
+2
@@ -72,6 +72,8 @@ export interface AutoLinkOptions {
|
||||
htmlAttrs?: string;
|
||||
invisibleTagAttrs?: string;
|
||||
htmlEscapeNonEntities?: boolean;
|
||||
targetBlank?: boolean;
|
||||
suppressNoFollow?: boolean;
|
||||
urlEntities?: UrlEntity[];
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user