The default declarations miss some properties so we've been extending the types in our code like this:
internal external class InputEventExt(type: String) : InputEvent {
val inputType: String
}
It used to work well until we tried to move this code to webMain. Previously, such declrations were duplicated in jsMain and wasmJsMain.
After moving to webMain the compilation tasks succeed, but webMain metadata compilation fails:
> Task :library:compileWebMainKotlinMetadata FAILED
...
No value passed for parameter 'type'.
I assume it means the type for InputEvent constructor:
public expect open class InputEvent(type: String, eventInitDict: InputEventInit = definedExternally) : UIEvent, JsAny {
Expected behaviour:
I can extend a type from kotlinx-browser in webMain. Both compilation and metadata compilation should succeed.