mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[core-js] Update to padStart, padEnd (stage 4) (#12440)
This commit is contained in:
parent
abb8bade28
commit
3c56e866d6
@ -334,15 +334,15 @@ b = Reflect.setPrototypeOf(a, a);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 7
|
||||
// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad,
|
||||
// Modules: es7.array.includes, es7.string.at, ees7.string.pad-start, es7.string.pad-end,
|
||||
// es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape,
|
||||
// es7.map.to-json, and es7.set.to-json
|
||||
// #############################################################################################
|
||||
|
||||
b = arrayOfPoint.includes(point, i);
|
||||
s = s.at(i);
|
||||
s = s.lpad(i, s);
|
||||
s = s.rpad(i, s);
|
||||
s = s.padStart(i, s);
|
||||
s = s.padEnd(i, s);
|
||||
arrayOfAny = Object.values(a);
|
||||
arrayOfStringAny = Object.entries(a);
|
||||
pdm = Object.getOwnPropertyDescriptors(a);
|
||||
|
||||
6
core-js/index.d.ts
vendored
6
core-js/index.d.ts
vendored
@ -890,7 +890,7 @@ declare namespace Reflect {
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 7
|
||||
// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad,
|
||||
// Modules: es7.array.includes, es7.string.at, es7.string.pad-start, es7.string.pad-end,
|
||||
// es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape,
|
||||
// es7.map.to-json, and es7.set.to-json
|
||||
// #############################################################################################
|
||||
@ -901,8 +901,8 @@ interface Array<T> {
|
||||
|
||||
interface String {
|
||||
at(index: number): string;
|
||||
lpad(length: number, fillStr?: string): string;
|
||||
rpad(length: number, fillStr?: string): string;
|
||||
padStart(length: number, fillStr?: string): string;
|
||||
padEnd(length: number, fillStr?: string): string;
|
||||
}
|
||||
|
||||
interface ObjectConstructor {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user