AFAIK, it's highly discouraged to use any charger or dock other than the official Nintendo ones. Apparently Nintendo really bungled the USB-C charging protocol implementation and it's possible your switch will get fried if using 3rd party chargers or docks.