Type 1 specifically refers to when the body attacks the insulin producing cells. Not necessarily that it’s producing none or not enough, even if that’s the way we’re accustomed to thinking about the distinction.
The difference between 1 and 2 is the reason your body doesn’t produce enough, not how much it produces.
So if your immune system is attacking your pancreas but you are still producing some insulin then you actually have type 2?