I even found that trying to save on the type arguments causes a mismatch:
So the current proposal is to generate an addition member for each OAR handler, named as <event-name>_WithModel, with the same signature as the existing variant (TemplateEvent<...> -> unit).
Currently, the templating TP generates the following event handler variants for binding OnAfterRender events:
This, however, runs into problems with disambiguation, so code like this doesn't type check properly, like it does with regular events:
Instead, one has to type annotate the handler argument, which gets pretty annoying:
I even found that trying to save on the type arguments causes a mismatch:
So the current proposal is to generate an addition member for each OAR handler, named as
<event-name>_WithModel
, with the same signature as the existing variant (TemplateEvent<...> -> unit
).