preserve local TypeDef