The weak declension (dem Typen, den Typen) occurs only in the colloquial meaning "guy", although strong declension (dem Typ, den Typ) is just as common. If the word means "type", it is always strong.
typeVon diesem Typ Kaffeemaschine haben wir keine mehr auf Lager.
colloquialguySchau dir mal den komischen Typ da drüben an!Der ist echt ein toller Typ!