findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;\r
\r
/**\r
- * Returns the this object after filling the section identified by start and end with value\r
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\r
* @param value value to fill array section with\r
* @param start index to start filling the array at. If start is negative, it is treated as\r
* length+start where length is the length of the array.\r
\r
/**\r
* Converts A string to an integer.\r
- * @param s A string to convert into a number.\r
- * @param radix A value between 2 and 36 that specifies the base of the number in numString.\r
+ * @param string A string to convert into a number.\r
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\r
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\r
* All other strings are considered decimal.\r
*/\r
startsWith(searchString: string, position?: number): boolean;\r
\r
/**\r
- * Returns an <a> HTML anchor element and sets the name attribute to the text value\r
+ * Returns an `<a>` HTML anchor element and sets the name attribute to the text value\r
+ * @deprecated A legacy feature for browser compatibility\r
* @param name\r
*/\r
anchor(name: string): string;\r
\r
- /** Returns a <big> HTML element */\r
+ /**\r
+ * Returns a `<big>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
big(): string;\r
\r
- /** Returns a <blink> HTML element */\r
+ /**\r
+ * Returns a `<blink>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
blink(): string;\r
\r
- /** Returns a <b> HTML element */\r
+ /**\r
+ * Returns a `<b>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
bold(): string;\r
\r
- /** Returns a <tt> HTML element */\r
+ /**\r
+ * Returns a `<tt>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
fixed(): string;\r
\r
- /** Returns a <font> HTML element and sets the color attribute value */\r
+ /**\r
+ * Returns a `<font>` HTML element and sets the color attribute value\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
fontcolor(color: string): string;\r
\r
- /** Returns a <font> HTML element and sets the size attribute value */\r
+ /**\r
+ * Returns a `<font>` HTML element and sets the size attribute value\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
fontsize(size: number): string;\r
\r
- /** Returns a <font> HTML element and sets the size attribute value */\r
+ /**\r
+ * Returns a `<font>` HTML element and sets the size attribute value\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
fontsize(size: string): string;\r
\r
- /** Returns an <i> HTML element */\r
+ /**\r
+ * Returns an `<i>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
italics(): string;\r
\r
- /** Returns an <a> HTML element and sets the href attribute value */\r
+ /**\r
+ * Returns an `<a>` HTML element and sets the href attribute value\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
link(url: string): string;\r
\r
- /** Returns a <small> HTML element */\r
+ /**\r
+ * Returns a `<small>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
small(): string;\r
\r
- /** Returns a <strike> HTML element */\r
+ /**\r
+ * Returns a `<strike>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
strike(): string;\r
\r
- /** Returns a <sub> HTML element */\r
+ /**\r
+ * Returns a `<sub>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
sub(): string;\r
\r
- /** Returns a <sup> HTML element */\r
+ /**\r
+ * Returns a `<sup>` HTML element\r
+ * @deprecated A legacy feature for browser compatibility\r
+ */\r
sup(): string;\r
}\r
\r
fromCodePoint(...codePoints: number[]): string;\r
\r
/**\r
- * String.raw is intended for use as a tag function of a Tagged Template String. When called\r
- * as such the first argument will be a well formed template call site object and the rest\r
- * parameter will contain the substitution values.\r
+ * String.raw is usually used as a tag function of a Tagged Template String. When called as\r
+ * such, the first argument will be a well formed template call site object and the rest\r
+ * parameter will contain the substitution values. It can also be called directly, for example,\r
+ * to interleave strings and values from your own tag function, and in this case the only thing\r
+ * it needs from the first argument is the raw property.\r
* @param template A well-formed template string call site representation.\r
* @param substitutions A set of substitution values.\r
*/\r
- raw(template: TemplateStringsArray, ...substitutions: any[]): string;\r
+ raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;\r
}\r