Is there a decent story for TypeScript interop with ClojureScript like there is for JavaScript?

This page summarizes the projects mentioned and recommended in the original post on /r/Clojure

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • tsickle

    Tsickle — TypeScript to Closure Translator

  • For (2), there is a tool called tsickle which converts some TypeScript code with definitions into Google Closure compatible code. When I tried this a few years ago, it still had some rough edges and there was some differences between the version of GCC that tsickle output for and the version that CLJS used.

  • boonmee

    A Clojure language server (WIP)

  • I created this library during lockdown (damn, 3 years ago now) that solves this exact problem: https://github.com/wavejumper/boonmee It basically wraps tsserver to grab type information - there's a few gifs/examples in the repo, as well as a demo Emacs mode.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • clojure-mode

    Clojure/Script mode for CodeMirror 6 (by nextjournal)

  • So yea, it works, but the parsing of Clojure code is really crude/rudimentary. Using an incremental parser like Clojure mode (https://github.com/nextjournal/clojure-mode) would be the next steps I would take if I were to revive this project.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts