mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
Add typing for core-js string.prototype.padStart and padEnd (#22622)
* Add typing for core-js string.prototype.padStart and padEnd * Change names to the ones in the core-js package docs * Increment header version * Update version * Revert version change
This commit is contained in:
2
types/core-js/index.d.ts
vendored
2
types/core-js/index.d.ts
vendored
@@ -58,6 +58,8 @@ declare function $for<T>(iterable: Iterable<T>): $for<T>;
|
||||
|
||||
interface String {
|
||||
at(index: number): string;
|
||||
padStart(length: number, fillStr?: string): string;
|
||||
padEnd(length: number, fillStr?: string): string;
|
||||
}
|
||||
|
||||
interface Object {
|
||||
|
||||
Reference in New Issue
Block a user