shaktiman_droid
04/07/2022, 4:13 PM1.6.20
, in the generated typescript file, I noticed the addition of __DoNotUserIt
of type __doNotImplementIt
Does anyone know reason behind it? It creates an issue if we have to implement that interface on TypeScript
app side.
Kotlin Code
@JsExport
interface GreetingInterface {
val platform: String
fun greeting(): String
}
Generated .d.ts
file
declare const __doNotImplementIt: unique symbol
type __doNotImplementIt = typeof __doNotImplementIt
export namespace <PACKAGE> {
interface GreetingInterface {
readonly platform: string;
greeting(): string;
readonly __doNotUseIt: __doNotImplementIt; <----- What and why is this here?
}
}
TypeScript App Usage (example.ts)
class Greeting implements GreetingInterface {
platform: string = "TypeScript"
greeting(): string {
return "this is greeting from " + this.platform;
}
__doNotUseIt: typeof sdk.__doNotImplementIt; <----- What to do here apart from adding `!` so compiler doesn't complain
}
bashor
04/11/2022, 7:52 PMbashor
04/11/2022, 7:53 PMexternal
modifiershaktiman_droid
04/11/2022, 7:59 PMankushg
04/12/2022, 1:47 AMbashor
04/12/2022, 12:37 PMbashor
04/12/2022, 12:38 PMMendess
05/03/2022, 3:02 PMbashor
05/06/2022, 3:48 PMbashor
05/06/2022, 3:49 PMbashor
05/06/2022, 3:50 PMbashor
05/06/2022, 3:51 PM