diff options
Diffstat (limited to 'cli/dts')
-rw-r--r-- | cli/dts/lib.esnext.array.d.ts | 120 | ||||
-rw-r--r-- | cli/dts/lib.esnext.d.ts | 2 | ||||
-rw-r--r-- | cli/dts/lib.esnext.string.d.ts | 21 | ||||
-rw-r--r-- | cli/dts/typescript.d.ts | 1 |
4 files changed, 128 insertions, 16 deletions
diff --git a/cli/dts/lib.esnext.array.d.ts b/cli/dts/lib.esnext.array.d.ts new file mode 100644 index 000000000..939edf6b8 --- /dev/null +++ b/cli/dts/lib.esnext.array.d.ts @@ -0,0 +1,120 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +/// <reference no-default-lib="true"/> + +interface Array<T> { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): T | undefined; +} + +interface ReadonlyArray<T> { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): T | undefined; +} + +interface Int8Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Uint8Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Uint8ClampedArray { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Int16Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Uint16Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Int32Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Uint32Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Float32Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface Float64Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): number | undefined; +} + +interface BigInt64Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): bigint | undefined; +} + +interface BigUint64Array { + /** + * Access item by relative indexing. + * @param index index to access. + */ + at(index: number): bigint | undefined; +} diff --git a/cli/dts/lib.esnext.d.ts b/cli/dts/lib.esnext.d.ts index f1a4c7e14..a71ac70e6 100644 --- a/cli/dts/lib.esnext.d.ts +++ b/cli/dts/lib.esnext.d.ts @@ -19,4 +19,6 @@ and limitations under the License. /// <reference lib="es2021" /> +/// <reference lib="esnext.array" /> /// <reference lib="esnext.intl" /> +/// <reference lib="esnext.string" /> diff --git a/cli/dts/lib.esnext.string.d.ts b/cli/dts/lib.esnext.string.d.ts index 89b27e2fe..aa3239ddd 100644 --- a/cli/dts/lib.esnext.string.d.ts +++ b/cli/dts/lib.esnext.string.d.ts @@ -13,23 +13,12 @@ See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ - - /// <reference no-default-lib="true"/> - interface String { - /** - * Replace all instances of a substring in a string, using a regular expression or search string. - * @param searchValue A string to search for. - * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. - */ - replaceAll(searchValue: string | RegExp, replaceValue: string): string; - - /** - * Replace all instances of a substring in a string, using a regular expression or search string. - * @param searchValue A string to search for. - * @param replacer A function that returns the replacement text. - */ - replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; + /** + * Access string by relative indexing. + * @param index index to access. + */ + at(index: number): string | undefined; } diff --git a/cli/dts/typescript.d.ts b/cli/dts/typescript.d.ts index b86a3a299..0cae15013 100644 --- a/cli/dts/typescript.d.ts +++ b/cli/dts/typescript.d.ts @@ -5205,6 +5205,7 @@ declare namespace ts { * writeFileCallback */ writeFile?(path: string, data: string, writeByteOrderMark?: boolean): void; + getCustomTransformers?: (project: string) => CustomTransformers | undefined; getModifiedTime(fileName: string): Date | undefined; setModifiedTime(fileName: string, date: Date): void; deleteFile(fileName: string): void; |