handlebars-lang/handlebars.js

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

Open

#1,513 opened on 2019年3月16日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (2,032 forks)batch import
bughelp wantedtypingsunverified

Repository metrics

Stars
 (17,697 stars)
PR merge metrics
 (平均マージ 15d) (30d で 4 merged PRs)

説明

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".

コントリビューターガイド