handlebars-lang/handlebars.js

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

开放

#1,513 创建于 2019年3月16日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (2,032 个派生)batch import
bughelp wantedtypingsunverified

仓库指标

星标
 (17,697 个星标)
PR 合并指标
 (平均合并 15天) (30 天内合并 4 个 PR)

描述

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

贡献者指南