summaryrefslogtreecommitdiff
path: root/cli/dts/lib.es2015.core.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.es2015.core.d.ts')
-rw-r--r--cli/dts/lib.es2015.core.d.ts12
1 files changed, 7 insertions, 5 deletions
diff --git a/cli/dts/lib.es2015.core.d.ts b/cli/dts/lib.es2015.core.d.ts
index 20aa06f6d..79901dfe9 100644
--- a/cli/dts/lib.es2015.core.d.ts
+++ b/cli/dts/lib.es2015.core.d.ts
@@ -43,7 +43,7 @@ interface Array<T> {
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
- * Returns the this object after filling the section identified by start and end with value
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
@@ -507,11 +507,13 @@ interface StringConstructor {
fromCodePoint(...codePoints: number[]): string;
/**
- * String.raw is intended for use as a tag function of a Tagged Template String. When called
- * as such the first argument will be a well formed template call site object and the rest
- * parameter will contain the substitution values.
+ * String.raw is usually used as a tag function of a Tagged Template String. When called as
+ * such, the first argument will be a well formed template call site object and the rest
+ * parameter will contain the substitution values. It can also be called directly, for example,
+ * to interleave strings and values from your own tag function, and in this case the only thing
+ * it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
- raw(template: TemplateStringsArray, ...substitutions: any[]): string;
+ raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
}