summaryrefslogtreecommitdiff
path: root/cli/dts/lib.es2015.core.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-08-27 10:12:59 +1000
committerGitHub <noreply@github.com>2021-08-27 10:12:59 +1000
commit935133f53af2b0efab5d22effff1239dc0e36147 (patch)
treef1cd283e50618e0cce4f70ff59a1e204856a592b /cli/dts/lib.es2015.core.d.ts
parentb9a965c607966efff91118e9a6f604c8f48ba88e (diff)
feat(cli): Update to TypeScript 4.4 (#11678)
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;
}