Ashley Arthur
08/03/2022, 11:04 AMfun hello(param1:String, param2:String, param3:Boolean = false ) {}
JS.dt.ts
hello(param1?: string, param2?: string, param3?: boolean): void;
Big Chungus
08/03/2022, 11:28 AMBig Chungus
08/03/2022, 11:29 AMandylamax
08/03/2022, 1:57 PMshaktiman_droid
08/27/2022, 6:05 PM1.6.20
, default value support was broken for Typescript, so looks like they tried to fix it in 1.7.x
but now if you’ve one param with default value then all becomes optional.
if you remove the default value from boolean above, then it works fine on 1.7.10
.
So yeah definitely a bug at this point!