Skip to content

Commit 5eff8c2

Browse files
committed
revert core changes
1 parent d38ee1e commit 5eff8c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,12 +1729,12 @@ namespace ts {
17291729
}
17301730

17311731
/* @internal */
1732-
export function startsWith(str: string, prefix: string | undefined): boolean {
1732+
export function startsWith(str: string, prefix: string): boolean {
17331733
return str.lastIndexOf(prefix, 0) === 0;
17341734
}
17351735

17361736
/* @internal */
1737-
export function removePrefix(str: string, prefix: string | undefined): string {
1737+
export function removePrefix(str: string, prefix: string): string {
17381738
return startsWith(str, prefix) ? str.substr(prefix.length) : str;
17391739
}
17401740

0 commit comments

Comments
 (0)