docs(): add documentation for switch