The type-safety concern would be to do with your templating tool, right? It doesn't have anything to do with Datastar