For USB-C: Tiny little side note here, there are some cheap small-size adapters that overheat. Some adapters thotle down, but some rare ones just blink power on and off, which is bad for lithium batteries.
Search a good brand, preferably reviewed, and GAN-type. Spend a bit more than the cheapest. Check if it has the right protocol (probably Power Delivery at some voltage) to make sure it charges at a normal speed.
For a DC charger like OP asked. Match polarity, match Voltage. And at least match the current/watage to make sure you can charge in a reasonable amount of time