diff --git a/typescript/types/main.d.ts b/typescript/types/main.d.ts index 6921c7d12..06ebb3ecd 100644 --- a/typescript/types/main.d.ts +++ b/typescript/types/main.d.ts @@ -11290,7 +11290,7 @@ interface String { * @returns {boolean} `true` if the given characters are found at the beginning of the string, otherwise, `false`. * @url http://www.espruino.com/Reference#l_String_startsWith */ - startsWith(searchString: any, position: number): boolean; + startsWith(searchString: any, position?: number): boolean; /** *