typeDef.customConstructor is redundant