jmmk / javascript-externs-generator

Generate externs for use with Google Closure Compiler
https://jmmk.github.io/javascript-externs-generator/
ISC License
135 stars 9 forks source link

Namespace 'jQuery.prototype.datepicker' was not found. #38

Closed ValeryKV closed 6 years ago

ValeryKV commented 6 years ago
  1. Load https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js
  2. Load https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.7.1/js/bootstrap-datepicker.js
  3. Extern! jQuery.prototype.datepicker Error: Namespace 'jQuery.prototype.datepicker' was not found.

I also tried 'jQuery.datepicker' and 'datepicker'.

What I am doing wrong?

jmmk commented 6 years ago

@ValeryKV If you extern jQuery, it will have the datepicker properties nested underneath. I'm not sure 100% sure how externs should work for jQuery plugins

ValeryKV commented 6 years ago

It is great. Thanks.