given a project that has as dev dependency @types/modernizr, which has a global declaration such as
declare var Modernizr: ModernizrStatic;
While tsc and vs-code pick it up fine, this plugin fails to find it:
Cannot find name 'Modernizr'.
console.log(Modernizr.hiddenscroll);
(I assume because the Modernizr module itself is not imported, which shouldn't need to)
If I add import "modernizr"; then compilation will be ok, but it will fail in runtime since that module of course doesn't exist
If I add import "@types/modernizr"; compilation will fail since type declaration "modules" cannot be imported
given a project that has as dev dependency
@types/modernizr, which has a global declaration such asdeclare var Modernizr: ModernizrStatic;While tsc and vs-code pick it up fine, this plugin fails to find it:
(I assume because the Modernizr module itself is not imported, which shouldn't need to)
If I add
import "modernizr";then compilation will be ok, but it will fail in runtime since that module of course doesn't existIf I add
import "@types/modernizr";compilation will fail since type declaration "modules" cannot be imported