Add generic type to publisher configuration/builder.