types: allow accessing options
from pre middleware
#13708
Merged
options
from pre middleware
#13708