Expose the inner format_typ function.