Adding type and some formatting

for the new spec to replace `.action()`

cc @yields