ankushg
03/29/2022, 8:55 PMbashor
03/29/2022, 10:25 PMbashor
03/29/2022, 10:25 PMbashor
03/29/2022, 10:27 PM@JsExport
fun String.foo() = 1
You will get
in JS:
function foo(_this_) {
return 1;
}
in d.ts
export function foo(_this_: string): number;
ankushg
03/30/2022, 12:01 AM