Php Function Optional Parameter Typescript Compiler Options