mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-03 06:27:46 +08:00
Merge pull request #25913 from Fnatte/feat/core-js-string-pad
[core-js] Change lpad/rpad to padStart/padEnd
This commit is contained in:
34
types/core-js/index.d.ts
vendored
34
types/core-js/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for core-js 0.9
|
||||
// Type definitions for core-js 2.5
|
||||
// Project: https://github.com/zloirock/core-js/
|
||||
// Definitions by: Ron Buckton <https://github.com/rbuckton>, Michel Felipe <https://github.com/mfdeveloper>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -755,8 +755,8 @@ declare namespace core {
|
||||
raw(template: TemplateStringsArray, ...substitutions: any[]): string;
|
||||
startsWith(text: string, searchString: string, position?: number): boolean;
|
||||
at(text: string, index: number): string;
|
||||
lpad(text: string, length: number, fillStr?: string): string;
|
||||
rpad(text: string, length: number, fillStr?: string): string;
|
||||
padStart(text: string, length: number, fillStr?: string): string;
|
||||
padEnd(text: string, length: number, fillStr?: string): string;
|
||||
escapeHTML(text: string): string;
|
||||
unescapeHTML(text: string): string;
|
||||
};
|
||||
@@ -1454,9 +1454,13 @@ declare module "core-js/fn/string/includes" {
|
||||
const includes: typeof core.String.includes;
|
||||
export = includes;
|
||||
}
|
||||
declare module "core-js/fn/string/lpad" {
|
||||
const lpad: typeof core.String.lpad;
|
||||
export = lpad;
|
||||
declare module "core-js/fn/string/pad-end" {
|
||||
const padEnd: typeof core.String.padEnd;
|
||||
export = padEnd;
|
||||
}
|
||||
declare module "core-js/fn/string/pad-start" {
|
||||
const padStart: typeof core.String.padStart;
|
||||
export = padStart;
|
||||
}
|
||||
declare module "core-js/fn/string/raw" {
|
||||
const raw: typeof core.String.raw;
|
||||
@@ -1466,10 +1470,6 @@ declare module "core-js/fn/string/repeat" {
|
||||
const repeat: typeof core.String.repeat;
|
||||
export = repeat;
|
||||
}
|
||||
declare module "core-js/fn/string/rpad" {
|
||||
const rpad: typeof core.String.rpad;
|
||||
export = rpad;
|
||||
}
|
||||
declare module "core-js/fn/string/starts-with" {
|
||||
const startsWith: typeof core.String.startsWith;
|
||||
export = startsWith;
|
||||
@@ -2273,9 +2273,13 @@ declare module "core-js/library/fn/string/includes" {
|
||||
const includes: typeof core.String.includes;
|
||||
export = includes;
|
||||
}
|
||||
declare module "core-js/library/fn/string/lpad" {
|
||||
const lpad: typeof core.String.lpad;
|
||||
export = lpad;
|
||||
declare module "core-js/library/fn/string/pad-end" {
|
||||
const padEnd: typeof core.String.padEnd;
|
||||
export = padEnd;
|
||||
}
|
||||
declare module "core-js/library/fn/string/pad-start" {
|
||||
const padStart: typeof core.String.padStart;
|
||||
export = padStart;
|
||||
}
|
||||
declare module "core-js/library/fn/string/raw" {
|
||||
const raw: typeof core.String.raw;
|
||||
@@ -2285,10 +2289,6 @@ declare module "core-js/library/fn/string/repeat" {
|
||||
const repeat: typeof core.String.repeat;
|
||||
export = repeat;
|
||||
}
|
||||
declare module "core-js/library/fn/string/rpad" {
|
||||
const rpad: typeof core.String.rpad;
|
||||
export = rpad;
|
||||
}
|
||||
declare module "core-js/library/fn/string/starts-with" {
|
||||
const startsWith: typeof core.String.startsWith;
|
||||
export = startsWith;
|
||||
|
||||
Reference in New Issue
Block a user