handlebars-lang/handlebars.js

Typings allow calling "compile" when including "handlebars/runtime".

Open

#1.513 geöffnet am 16. März 2019

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.032 Forks)batch import
bughelp wantedtypingsunverified

Repository-Metriken

Stars
 (17.697 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 15T) (4 gemergte PRs in 30 T)

Beschreibung

This issue is actually not verified, but maybe someone can verify and fix it:

The typings of "handlebars/runtime" currently include "handlebars.d.ts", so the "compile"-method is probably part of the typings for "handlebars/runtime". This is nonsense of course. It should only be in "handlebars".

I think the inclusion should be the other way around: Most typings should be in "runtime.d.ts". "handlebars.d.ts" should include them and add "compile" and "precompile".

Contributor Guide