lambdaisland / glogi

A ClojureScript logging library based on goog.log
Mozilla Public License 2.0
119 stars 13 forks source link

(externs inference): add a type hint for the Console instance #21

Closed mraveloarinjaka closed 2 years ago

mraveloarinjaka commented 2 years ago

There is a warning when compiling in release mode ` 75 | ;; Disable goog.debug.Console if it's been enabled (e.g. by Figwheel), we do 76 | ;; console logging now 77 | (when-let [instance Console/instance] 78 | (.setCapturing instance false)) -----------^-------------------------------------------------------------------- Cannot infer target type in expression (. instance setCapturing false)

79 | 80 | (glogi/add-handler-once (select-handler))) 81 |

`

plexus commented 2 years ago

Thanks!