@@ -112,6 +112,6 @@ instance GenerateCode rest => GenerateCode (AjaxReq :<|> rest) where
112112-- | Directly generate all the javascript functions for your API
113113-- from a 'Proxy' for your API type. You can then write it to
114114-- a file or integrate it in a page, for example.
115−jsForAPI :: (HasJQ api, GenerateCode (JQ api))
115+jsForAPI :: (HasJQ (Canonicalize api), GenerateCode (JQ api))
116116 => Proxy api -> String
117117jsForAPI p = jsFor (jquery p)