Add deprecation warning to types