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 d38ee1e commit 5eff8c2Copy full SHA for 5eff8c2
src/compiler/core.ts
@@ -1729,12 +1729,12 @@ namespace ts {
1729
}
1730
1731
/* @internal */
1732
- export function startsWith(str: string, prefix: string | undefined): boolean {
+ export function startsWith(str: string, prefix: string): boolean {
1733
return str.lastIndexOf(prefix, 0) === 0;
1734
1735
1736
1737
- export function removePrefix(str: string, prefix: string | undefined): string {
+ export function removePrefix(str: string, prefix: string): string {
1738
return startsWith(str, prefix) ? str.substr(prefix.length) : str;
1739
1740
0 commit comments