Rom1
Rom1

Reputation: 3207

Is the Google API client for javascript compatible with the Closure advanced mode compilation?

Mostly, the title says it all, but I could not find any answer in the documentation of the library.

Specifically, can I use said library from Clojurescript ?

Cheers

Upvotes: 1

Views: 76

Answers (1)

Stephen Nelson
Stephen Nelson

Reputation: 939

Short answer: yes, you can.

You should use externs to describe the functions you want to use then use (:import ..) within your clojurescript code to let the compiler know that you're referring to a javascript library.

You don't need to do anything special for the Google API client, the same principles apply for using any javascript library (see also).

Upvotes: 2

Related Questions