The iPads that fit into this case have a Lightning connector (not USB-C), the keyboard is charged via Micro-USB. However, the cable is included (if I'm not mistaken) and can be used with the iPad power adapter.
I also have an early 2017. Should basically fit. The side stabilisers have broken off in the meantime. Kind of annoying. Now the cover no longer closes cleanly.