pub fn to_files( route: Route(Effect(Element(a))), ) -> Promise(Result(List(#(String, BitArray)), Snag))