Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/es-abstract/2015/GetSubstitution.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ declare function GetSubstitution(
matched: string,
str: string,
position: number,
captures: string[],
captures: ReadonlyArray<string | undefined>,
replacement: string,
): string;
export = GetSubstitution;
2 changes: 2 additions & 0 deletions types/es-abstract/2015/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../5/abs");
export = abs;
2 changes: 2 additions & 0 deletions types/es-abstract/2016/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2015/abs");
export = abs;
2 changes: 2 additions & 0 deletions types/es-abstract/2017/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2016/abs");
export = abs;
2 changes: 1 addition & 1 deletion types/es-abstract/2018/GetSubstitution.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ declare function GetSubstitution(
matched: string,
str: string,
position: number,
captures: string[],
captures: ReadonlyArray<string | undefined>,
namedCaptures: undefined | { [groupName: string]: unknown },
replacement: string,
): string;
Expand Down
2 changes: 2 additions & 0 deletions types/es-abstract/2018/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2017/abs");
export = abs;
2 changes: 1 addition & 1 deletion types/es-abstract/2019/TrimString.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare function TrimString(string: string, where: "start" | "end" | "start+end"): string;
declare function TrimString(string: unknown, where: "start" | "end" | "start+end"): string;
export = TrimString;
2 changes: 2 additions & 0 deletions types/es-abstract/2019/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2018/abs");
export = abs;
6 changes: 3 additions & 3 deletions types/es-abstract/2020/StringPad.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare function StringPad(
O: string,
maxLength: number,
fillString: string | undefined,
O: unknown,
maxLength: unknown,
fillString: unknown,
placement: "start" | "end",
): string;
export = StringPad;
2 changes: 1 addition & 1 deletion types/es-abstract/2020/ToBigInt64.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare function ToBigInt64(argument: bigint): bigint;
declare function ToBigInt64(argument: unknown): bigint;
export = ToBigInt64;
2 changes: 1 addition & 1 deletion types/es-abstract/2020/ToBigUint64.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare function ToBigUint64(argument: bigint): bigint;
declare function ToBigUint64(argument: unknown): bigint;
export = ToBigUint64;
2 changes: 2 additions & 0 deletions types/es-abstract/2020/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2019/abs");
export = abs;
1 change: 1 addition & 0 deletions types/es-abstract/2020/thisBigIntValue.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
declare function thisBigIntValue(value: bigint | BigInt): bigint;
export = thisBigIntValue;
2 changes: 1 addition & 1 deletion types/es-abstract/2021/CodePointsToString.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare function CodePointsToString(codePoints: readonly string[]): string;
declare function CodePointsToString(codePoints: readonly number[]): string;
export = CodePointsToString;
2 changes: 2 additions & 0 deletions types/es-abstract/2021/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2020/abs");
export = abs;
2 changes: 2 additions & 0 deletions types/es-abstract/2022/ToZeroPaddedDecimalString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function ToZeroPaddedDecimalString(n: number, minLength: number): string;
export = ToZeroPaddedDecimalString;
2 changes: 2 additions & 0 deletions types/es-abstract/2022/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2021/abs");
export = abs;
14 changes: 14 additions & 0 deletions types/es-abstract/2023/GetNamedTimeZoneEpochNanoseconds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare function GetNamedTimeZoneEpochNanoseconds(
timeZoneIdentifier: string,
year: number,
month: number,
day: number,
hour: number,
minute: number,
second: number,
millisecond: number,
microsecond: number,
nanosecond: number,
// eslint-disable-next-line @definitelytyped/no-single-element-tuple-type
): [bigint];
export = GetNamedTimeZoneEpochNanoseconds;
12 changes: 12 additions & 0 deletions types/es-abstract/2023/GetUTCEpochNanoseconds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare function GetUTCEpochNanoseconds(
year: number,
month: number,
day: number,
hour: number,
minute: number,
second: number,
millisecond: number,
microsecond: number,
nanosecond: number,
): bigint;
export = GetUTCEpochNanoseconds;
2 changes: 2 additions & 0 deletions types/es-abstract/2023/IsTimeZoneOffsetString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function IsTimeZoneOffsetString(offsetString: string): boolean;
export = IsTimeZoneOffsetString;
2 changes: 2 additions & 0 deletions types/es-abstract/2023/ToZeroPaddedDecimalString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import ToZeroPaddedDecimalString = require("../2022/ToZeroPaddedDecimalString");
export = ToZeroPaddedDecimalString;
2 changes: 2 additions & 0 deletions types/es-abstract/2023/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2022/abs");
export = abs;
2 changes: 1 addition & 1 deletion types/es-abstract/2023/truncate.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare function truncate(x: number): number;
declare function truncate<T extends bigint | number>(x: T): T;
export = truncate;
2 changes: 2 additions & 0 deletions types/es-abstract/2024/GetNamedTimeZoneEpochNanoseconds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import GetNamedTimeZoneEpochNanoseconds = require("../2023/GetNamedTimeZoneEpochNanoseconds");
export = GetNamedTimeZoneEpochNanoseconds;
2 changes: 2 additions & 0 deletions types/es-abstract/2024/GetUTCEpochNanoseconds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import GetUTCEpochNanoseconds = require("../2023/GetUTCEpochNanoseconds");
export = GetUTCEpochNanoseconds;
2 changes: 2 additions & 0 deletions types/es-abstract/2024/IsTimeZoneOffsetString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import IsTimeZoneOffsetString = require("../2023/IsTimeZoneOffsetString");
export = IsTimeZoneOffsetString;
2 changes: 2 additions & 0 deletions types/es-abstract/2024/SystemTimeZoneIdentifier.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function SystemTimeZoneIdentifier(): string;
export = SystemTimeZoneIdentifier;
2 changes: 2 additions & 0 deletions types/es-abstract/2024/ToZeroPaddedDecimalString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import ToZeroPaddedDecimalString = require("../2023/ToZeroPaddedDecimalString");
export = ToZeroPaddedDecimalString;
2 changes: 2 additions & 0 deletions types/es-abstract/2024/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2023/abs");
export = abs;
2 changes: 2 additions & 0 deletions types/es-abstract/2025/GetNamedTimeZoneEpochNanoseconds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import GetNamedTimeZoneEpochNanoseconds = require("../2024/GetNamedTimeZoneEpochNanoseconds");
export = GetNamedTimeZoneEpochNanoseconds;
2 changes: 2 additions & 0 deletions types/es-abstract/2025/GetUTCEpochNanoseconds.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import GetUTCEpochNanoseconds = require("../2024/GetUTCEpochNanoseconds");
export = GetUTCEpochNanoseconds;
2 changes: 2 additions & 0 deletions types/es-abstract/2025/IsTimeZoneOffsetString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import IsTimeZoneOffsetString = require("../2024/IsTimeZoneOffsetString");
export = IsTimeZoneOffsetString;
2 changes: 2 additions & 0 deletions types/es-abstract/2025/SystemTimeZoneIdentifier.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import SystemTimeZoneIdentifier = require("../2024/SystemTimeZoneIdentifier");
export = SystemTimeZoneIdentifier;
2 changes: 2 additions & 0 deletions types/es-abstract/2025/ToZeroPaddedDecimalString.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import ToZeroPaddedDecimalString = require("../2024/ToZeroPaddedDecimalString");
export = ToZeroPaddedDecimalString;
2 changes: 2 additions & 0 deletions types/es-abstract/2025/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import abs = require("../2024/abs");
export = abs;
2 changes: 1 addition & 1 deletion types/es-abstract/5/AbstractRelationalComparison.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare function AbstractRelationalComparison(x: unknown, y: unknown, LeftFirst: boolean): boolean;
declare function AbstractRelationalComparison(x: unknown, y: unknown, LeftFirst: boolean): boolean | undefined;
export = AbstractRelationalComparison;
2 changes: 2 additions & 0 deletions types/es-abstract/5/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function abs(x: number): number;
export = abs;
1 change: 1 addition & 0 deletions types/es-abstract/es2015.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ES5 = require("./es5");
import type { PropertyKey as ESPropertyKey } from "./index";

interface ES2015 {
readonly abs: typeof import("./2015/abs");
readonly "Abstract Equality Comparison": typeof import("./2015/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2015/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2015/StrictEqualityComparison");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es2016.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2015 = require("./es2015");

interface ES2016 {
readonly abs: typeof import("./2016/abs");
readonly "Abstract Equality Comparison": typeof import("./2016/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2016/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2016/StrictEqualityComparison");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es2017.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2016 = require("./es2016");

interface ES2017 {
readonly abs: typeof import("./2017/abs");
readonly "Abstract Equality Comparison": typeof import("./2017/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2017/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2017/StrictEqualityComparison");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es2018.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2017 = require("./es2017");

interface ES2018 {
readonly abs: typeof import("./2018/abs");
readonly "Abstract Equality Comparison": typeof import("./2018/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2018/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2018/StrictEqualityComparison");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es2019.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2018 = require("./es2018");

interface ES2019 {
readonly abs: typeof import("./2019/abs");
readonly "Abstract Equality Comparison": typeof import("./2019/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2019/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2019/StrictEqualityComparison");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es2020.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2019 = require("./es2019");

interface ES2020 {
readonly abs: typeof import("./2020/abs");
readonly "Abstract Equality Comparison": typeof import("./2020/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2020/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2020/StrictEqualityComparison");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es2021.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2020 = require("./es2020");

interface ES2021 {
readonly abs: typeof import("./2021/abs");
readonly "Abstract Equality Comparison": typeof import("./2021/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./2021/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./2021/StrictEqualityComparison");
Expand Down
2 changes: 2 additions & 0 deletions types/es-abstract/es2022.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2021 = require("./es2021");

interface ES2022 {
readonly abs: typeof import("./2022/abs");
readonly AddEntriesFromIterable: typeof import("./2022/AddEntriesFromIterable");
readonly AdvanceStringIndex: typeof import("./2022/AdvanceStringIndex");
readonly ArrayCreate: typeof import("./2022/ArrayCreate");
Expand Down Expand Up @@ -140,6 +141,7 @@ interface ES2022 {
readonly ToUint32: typeof import("./2022/ToUint32");
readonly ToUint8: typeof import("./2022/ToUint8");
readonly ToUint8Clamp: typeof import("./2022/ToUint8Clamp");
readonly ToZeroPaddedDecimalString: typeof import("./2022/ToZeroPaddedDecimalString");
readonly TrimString: typeof import("./2022/TrimString");
readonly Type: typeof import("./2022/Type");
readonly ValidateAndApplyPropertyDescriptor: typeof import("./2022/ValidateAndApplyPropertyDescriptor");
Expand Down
5 changes: 5 additions & 0 deletions types/es-abstract/es2023.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2022 = require("./es2022");

interface ES2023 {
readonly abs: typeof import("./2023/abs");
readonly AddEntriesFromIterable: typeof import("./2023/AddEntriesFromIterable");
readonly AdvanceStringIndex: typeof import("./2023/AdvanceStringIndex");
readonly ArrayCreate: typeof import("./2023/ArrayCreate");
Expand Down Expand Up @@ -40,9 +41,11 @@ interface ES2023 {
readonly Get: typeof import("./2023/Get");
readonly GetIterator: typeof import("./2023/GetIterator");
readonly GetMethod: typeof import("./2023/GetMethod");
readonly GetNamedTimeZoneEpochNanoseconds: typeof import("./2023/GetNamedTimeZoneEpochNanoseconds");
readonly GetOwnPropertyKeys: typeof import("./2023/GetOwnPropertyKeys");
readonly GetPrototypeFromConstructor: typeof import("./2023/GetPrototypeFromConstructor");
readonly GetSubstitution: typeof import("./2023/GetSubstitution");
readonly GetUTCEpochNanoseconds: typeof import("./2023/GetUTCEpochNanoseconds");
readonly GetV: typeof import("./2023/GetV");
readonly HasOwnProperty: typeof import("./2023/HasOwnProperty");
readonly HasProperty: typeof import("./2023/HasProperty");
Expand All @@ -65,6 +68,7 @@ interface ES2023 {
readonly IsPropertyKey: typeof import("./2023/IsPropertyKey");
readonly IsRegExp: typeof import("./2023/IsRegExp");
readonly IsStrictlyEqual: typeof import("./2023/IsStrictlyEqual");
readonly IsTimeZoneOffsetString: typeof import("./2023/IsTimeZoneOffsetString");
readonly IteratorClose: typeof import("./2023/IteratorClose");
readonly IteratorComplete: typeof import("./2023/IteratorComplete");
readonly IteratorNext: typeof import("./2023/IteratorNext");
Expand Down Expand Up @@ -138,6 +142,7 @@ interface ES2023 {
readonly ToUint32: typeof import("./2023/ToUint32");
readonly ToUint8: typeof import("./2023/ToUint8");
readonly ToUint8Clamp: typeof import("./2023/ToUint8Clamp");
readonly ToZeroPaddedDecimalString: typeof import("./2023/ToZeroPaddedDecimalString");
readonly TrimString: typeof import("./2023/TrimString");
readonly truncate: typeof import("./2023/truncate");
readonly Type: typeof import("./2023/Type");
Expand Down
6 changes: 6 additions & 0 deletions types/es-abstract/es2024.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2023 = require("./es2023");

interface ES2024 {
readonly abs: typeof import("./2024/abs");
readonly AddEntriesFromIterable: typeof import("./2024/AddEntriesFromIterable");
readonly AdvanceStringIndex: typeof import("./2024/AdvanceStringIndex");
readonly ArrayCreate: typeof import("./2024/ArrayCreate");
Expand Down Expand Up @@ -39,9 +40,11 @@ interface ES2024 {
readonly Get: typeof import("./2024/Get");
readonly GetIterator: typeof import("./2024/GetIterator");
readonly GetMethod: typeof import("./2024/GetMethod");
readonly GetNamedTimeZoneEpochNanoseconds: typeof import("./2024/GetNamedTimeZoneEpochNanoseconds");
readonly GetOwnPropertyKeys: typeof import("./2024/GetOwnPropertyKeys");
readonly GetPrototypeFromConstructor: typeof import("./2024/GetPrototypeFromConstructor");
readonly GetSubstitution: typeof import("./2024/GetSubstitution");
readonly GetUTCEpochNanoseconds: typeof import("./2024/GetUTCEpochNanoseconds");
readonly GetV: typeof import("./2024/GetV");
readonly HasOwnProperty: typeof import("./2024/HasOwnProperty");
readonly HasProperty: typeof import("./2024/HasProperty");
Expand All @@ -64,6 +67,7 @@ interface ES2024 {
readonly IsPropertyKey: typeof import("./2024/IsPropertyKey");
readonly IsRegExp: typeof import("./2024/IsRegExp");
readonly IsStrictlyEqual: typeof import("./2024/IsStrictlyEqual");
readonly IsTimeZoneOffsetString: typeof import("./2024/IsTimeZoneOffsetString");
readonly IteratorClose: typeof import("./2024/IteratorClose");
readonly IteratorComplete: typeof import("./2024/IteratorComplete");
readonly IteratorNext: typeof import("./2024/IteratorNext");
Expand Down Expand Up @@ -104,6 +108,7 @@ interface ES2024 {
readonly StringToNumber: typeof import("./2024/StringToNumber");
readonly substring: typeof import("./2024/substring");
readonly SymbolDescriptiveString: typeof import("./2024/SymbolDescriptiveString");
readonly SystemTimeZoneIdentifier: typeof import("./2024/SystemTimeZoneIdentifier");
readonly TestIntegrityLevel: typeof import("./2024/TestIntegrityLevel");
readonly TimeClip: typeof import("./2024/TimeClip");
readonly TimeFromYear: typeof import("./2024/TimeFromYear");
Expand Down Expand Up @@ -131,6 +136,7 @@ interface ES2024 {
readonly ToUint32: typeof import("./2024/ToUint32");
readonly ToUint8: typeof import("./2024/ToUint8");
readonly ToUint8Clamp: typeof import("./2024/ToUint8Clamp");
readonly ToZeroPaddedDecimalString: typeof import("./2024/ToZeroPaddedDecimalString");
readonly TrimString: typeof import("./2024/TrimString");
readonly truncate: typeof import("./2024/truncate");
readonly Type: typeof import("./2024/Type");
Expand Down
6 changes: 6 additions & 0 deletions types/es-abstract/es2025.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ES2024 = require("./es2024");

interface ES2025 {
readonly abs: typeof import("./2025/abs");
readonly AddEntriesFromIterable: typeof import("./2025/AddEntriesFromIterable");
readonly AdvanceStringIndex: typeof import("./2025/AdvanceStringIndex");
readonly ArrayCreate: typeof import("./2025/ArrayCreate");
Expand Down Expand Up @@ -39,9 +40,11 @@ interface ES2025 {
readonly Get: typeof import("./2025/Get");
readonly GetIterator: typeof import("./2025/GetIterator");
readonly GetMethod: typeof import("./2025/GetMethod");
readonly GetNamedTimeZoneEpochNanoseconds: typeof import("./2025/GetNamedTimeZoneEpochNanoseconds");
readonly GetOwnPropertyKeys: typeof import("./2025/GetOwnPropertyKeys");
readonly GetPrototypeFromConstructor: typeof import("./2025/GetPrototypeFromConstructor");
readonly GetSubstitution: typeof import("./2025/GetSubstitution");
readonly GetUTCEpochNanoseconds: typeof import("./2025/GetUTCEpochNanoseconds");
readonly GetV: typeof import("./2025/GetV");
readonly HasOwnProperty: typeof import("./2025/HasOwnProperty");
readonly HasProperty: typeof import("./2025/HasProperty");
Expand All @@ -62,6 +65,7 @@ interface ES2025 {
readonly IsPromise: typeof import("./2025/IsPromise");
readonly IsRegExp: typeof import("./2025/IsRegExp");
readonly IsStrictlyEqual: typeof import("./2025/IsStrictlyEqual");
readonly IsTimeZoneOffsetString: typeof import("./2025/IsTimeZoneOffsetString");
readonly IteratorClose: typeof import("./2025/IteratorClose");
readonly IteratorComplete: typeof import("./2025/IteratorComplete");
readonly IteratorNext: typeof import("./2025/IteratorNext");
Expand Down Expand Up @@ -102,6 +106,7 @@ interface ES2025 {
readonly StringToNumber: typeof import("./2025/StringToNumber");
readonly substring: typeof import("./2025/substring");
readonly SymbolDescriptiveString: typeof import("./2025/SymbolDescriptiveString");
readonly SystemTimeZoneIdentifier: typeof import("./2025/SystemTimeZoneIdentifier");
readonly TestIntegrityLevel: typeof import("./2025/TestIntegrityLevel");
readonly TimeClip: typeof import("./2025/TimeClip");
readonly TimeFromYear: typeof import("./2025/TimeFromYear");
Expand Down Expand Up @@ -129,6 +134,7 @@ interface ES2025 {
readonly ToUint32: typeof import("./2025/ToUint32");
readonly ToUint8: typeof import("./2025/ToUint8");
readonly ToUint8Clamp: typeof import("./2025/ToUint8Clamp");
readonly ToZeroPaddedDecimalString: typeof import("./2025/ToZeroPaddedDecimalString");
readonly TrimString: typeof import("./2025/TrimString");
readonly truncate: typeof import("./2025/truncate");
readonly ValidateAndApplyPropertyDescriptor: typeof import("./2025/ValidateAndApplyPropertyDescriptor");
Expand Down
1 change: 1 addition & 0 deletions types/es-abstract/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type {
} from "./index";

interface ES5 {
readonly abs: typeof import("./5/abs");
readonly "Abstract Equality Comparison": typeof import("./5/AbstractEqualityComparison");
readonly "Abstract Relational Comparison": typeof import("./5/AbstractRelationalComparison");
readonly "Strict Equality Comparison": typeof import("./5/StrictEqualityComparison");
Expand Down
7 changes: 6 additions & 1 deletion types/es-abstract/test/es2015.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ES2015.ToLength(any); // $ExpectType number

ES2015.Call<bigint, readonly [], string>(Object.prototype.toString, BigInt(Number.MAX_SAFE_INTEGER), []); // $ExpectType string
ES2015.Call(Object.prototype.hasOwnProperty, [], ["length"] as const); // $ExpectType boolean
// eslint-disable-next-line @definitelytyped/no-single-element-tuple-type
ES2015.Call(Object.prototype.hasOwnProperty, any, args as IArguments & [PropertyKey]); // $ExpectType boolean

// $ExpectType IterableIterator<number> || ArrayIterator<number>
Expand All @@ -56,14 +57,15 @@ function* generable() {

declare function iterNext<T, TReturn = any, TNext = unknown>(
this: Iterator<T, TReturn, TNext>,
// eslint-disable-next-line @definitelytyped/no-single-element-tuple-type
...args: [] | [TNext]
): IteratorResult<T, TReturn>;

// $ExpectType IteratorResult<number, boolean>
ES2015.Call(iterNext, generable());

// $ExpectType IteratorResult<number, boolean>
ES2015.Invoke(generable(), "next", args as IArguments & [string]);
ES2015.Invoke(generable(), "next", args as IArguments & [string]); // eslint-disable-line @definitelytyped/no-single-element-tuple-type
ES2015.Invoke(generable(), Symbol.iterator, args as IArguments & []);

// $ExpectType boolean
Expand Down Expand Up @@ -197,6 +199,9 @@ ES2015.GetPrototypeFromConstructor(Bar, "unknown"); // $ExpectType object
ES2015.GetPrototypeFromConstructor(Baz, "unknown"); // $ExpectType object
ES2015.GetPrototypeFromConstructor(Biz, "unknown"); // $ExpectType object

ES2015.GetSubstitution("a", "abc", 0, ["x"], "$&"); // $ExpectType string
ES2015.GetSubstitution("a", "abc", 0, ["x", undefined], "$1"); // $ExpectType string

// Removed in ES2015:
// @ts-expect-error
ES2015.CheckObjectCoercible;
Loading