Help with dialyzer warning on typespec that includes anonymous function

You have the function type wrong. I’ll try to take a closer look into it in a couple of minutes.