mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
padLeft/padRight are defined in es2017.string lib already
This commit is contained in:
@@ -3752,25 +3752,11 @@ namespace module_tests {
|
||||
const m2: Module = new Module.Module("moduleId");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
/// Node.js ES2017 Support
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
namespace es2017_tests {
|
||||
const s: string = 'foo';
|
||||
const s1: string = s.padStart();
|
||||
const s11: string = s.padStart(10);
|
||||
const s12: string = s.padStart(10, 'x');
|
||||
const s2: string = s.padEnd();
|
||||
const s21: string = s.padEnd(10);
|
||||
const s22: string = s.padEnd(10, 'x');
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
/// Node.js ESNEXT Support
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
namespace esnext_tests {
|
||||
namespace esnext_string_tests {
|
||||
const s: string = 'foo';
|
||||
const s1: string = s.trimLeft();
|
||||
const s2: string = s.trimRight();
|
||||
|
||||
Reference in New Issue
Block a user