We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3d0e0 commit 515d00dCopy full SHA for 515d00d
src/lib/es2015.core.d.ts
@@ -401,6 +401,7 @@ interface String {
401
* same as the corresponding elements of this object (converted to a String) starting at
402
* endPosition – length(this). Otherwise returns false.
403
*/
404
+ endsWith<T extends string>(searchString: T): this is `${string}${T}`;
405
endsWith(searchString: string, endPosition?: number): boolean;
406
407
/**
@@ -431,6 +432,7 @@ interface String {
431
432
433
* position. Otherwise returns false.
434
435
+ startsWith<T extends string>(searchString: T, position?: 0): this is `${T}${string}`;
436
startsWith(searchString: string, position?: number): boolean;
437
438
0 commit comments